Andrei Pall

Linux Software Engineering

Symfony configuration options

In Symfony, configuration options are spread across the official documentation, YAML configuration files in your project, and the configuration reference for each component.

Read More

Complete Guide to Mocking Objects with PHPUnit

Mocking is one of the most important techniques in PHP unit testing. It allows you to test a class without executing its real dependencies, such as database connections, HTTP requests, external APIs, email services, or other classes.

Read More

Symfony 8 Attributes - Guide with Examples

Symfony 8 uses PHP attributes extensively to configure controllers, routing, dependency injection, validation, security, Doctrine ORM entities, event listeners, and more.

Read More

Spring MVC Annotations - Guide with Examples

Spring MVC is a Java framework for web applications and REST APIs. Its annotations handle routing, request data, validation, responses, and errors. Some commonly used annotations come from the broader Spring ecosystem or Jakarta Validation rather than Spring MVC itself.

Read More

JPA Annotations in Java - Guide with Examples

JPA (Jakarta Persistence API) maps Java objects to relational database tables. Modern applications use `jakarta.persistence.*`; older applications use `javax.persistence.*`. Hibernate and EclipseLink are JPA implementations.

Read More

PHP Attributes - Complete Guide with Examples

PHP attributes, introduced in PHP 8.0, let developers attach structured metadata to classes, methods, properties, functions, parameters, and constants. They are conceptually similar to Java annotations and are widely used by Symfony and Doctrine.

Read More

Java Annotations - A Practical Guide with Examples

Java annotations add metadata (additional information) to Java code. They are widely used in Spring Boot, Jakarta EE, Hibernate, and JUnit.

Read More

CodeIgniter 4 config comparison

For CodeIgniter 4, a good approach is to compare your project's `app/Config/` files against the corresponding files shipped in `vendor/codeigniter4/framework/app/Config/`.

Read More

The preferred injection type in Spring Boot projects

In Spring MVC, ModelAttribute is mainly used to bind HTTP request parameters to a Java object (a model/DTO) and/or add an object to the MVC model.

Read More

ModelAttribute in Spring MVC

In Spring MVC, ModelAttribute is mainly used to bind HTTP request parameters to a Java object (a model/DTO) and/or add an object to the MVC model.

Read More