5 Commits

Author SHA1 Message Date
Peter Kokot
5ed911a14f Bump copyrights and license year range to 2019 2019-01-25 00:22:14 +01:00
Peter Kokot
8d0b4db8b8 Remove ext/mysql/mysqli dependency 2018-11-20 05:18:27 +01:00
Peter Kokot
edf11ec836 Add DSN converter
This patch adds a DSN string converter that can convert the already set
DSN database setting into an array and populates proper configuration
values. This is done to sync things with the production settings and to
gradually migrate the mysql_* mysqli_* elements to PDO.
2018-11-15 00:47:33 +01:00
Peter Kokot
5d7d447d17 Add environment dependent configuration
This patch adds environment dependent configuration. When in development
environment, the `composer install` step copies the `.env` file from the
`.env.dist` file. This approach allows following the "The Twelve-Factor App"
methodology of building web applications.

The .env files with environment variables are processed in development
environment with the Symfony Dotenv component. When in production
environment, the .env files are not used but are for now overridden via
the `config/app_prod.php` file since the production environment is less
configurable and adaptable to changes. Changing future configuration
approach is with this way prepared for using environment variables in
production if needed in the future.
2018-11-12 00:22:52 +01:00
Peter Kokot
8b633c572c Add Config class
This patch adds a new configuration handler class and introduces an
initial config directory using a PHP format.
2018-11-05 01:40:03 +01:00