Symfony: 5 – Environments

Environments Every Symfony application runs within an environment. An environment is a specific set of configuration and loaded bundles, represented by a string. The same application can be run with different configurations by running the application in different environments. Symfony2 comes with three environments defined — dev, test and prod — but you can create
Continue reading Symfony: 5 – Environments

Symfony: 3 – Requests and responses

Requests and responses Symfony provides two classes that allow you to interact with the HTTP request and response. The Request and Response classes are part of a standalone component included with Symfony called HttpFoundation. This component can be used entirely independently of Symfony and also provides classes for handling sessions and file uploads. The Request
Continue reading Symfony: 3 – Requests and responses

Symfony: 9 – Doctrine

Symfony comes integrated with Doctrine, a library whose sole goal is to give you powerful tools to make this easy. By convention the database connection is usually configured in an app/config/parameters.yml file. Introduction You can have doctrine create the database for you: $ php app/console doctrine:database:create$ php app/console doctrine:database:create One mistake developers make when starting
Continue reading Symfony: 9 – Doctrine