- bumped requirement to PHP 8.0
- bumped requirements to Symfony 6
- Properly changed from
PostResponseEventtoTerminateEvent
- bumped requirement to PHP 7.3
- bumped requirements to Symfony 5
Previously psql was internally used to create and drop the database,
now switched to createdb and dropdb.
New commands have been introduced (and some of them use psql):
gnugat-pomm-foundation:database:check-existence(g:p:ch)gnugat-pomm-foundation:database:close-connections(g:p:cl)gnugat-pomm-foundation:database:dump(g:p:du)gnugat-pomm-foundation:database:execute-file(g:p:ex)gnugat-pomm-foundation:database:launch-console(g:p:la)gnugat-pomm-foundation:database:query(g:p:qu)
Finally, ConnectionQueryManager has been changed:
- converts
TRUEandFALSEparameters to't'and'f' - converts
\DateTimeparameters to string following this format:'Y-m-d H:i:s T'
- added Symfony 4 support
- removed Symfony 3 support
BC break: the service alias
gnugat_pomm_foundation.query_managerhas been removed, use service IDPommProject\Foundation\QueryManager\QueryManagerInterfaceinstead
- Used Symfony 4 directory tree structure
- bumped requirement to PHP 7.1
- removed addClassesToCompile for Symfony 4 compatibility
- created service
PommProject\Foundation\QueryManager\QueryManagerInterface(gnugat_pomm_foundation.query_manageris now an alias of this service, to keep BC, but it will drop in future versions)
BC break: void return type hints are used, making this bundle incompatible with applications running on PHP < 7.1
Previously CreateDatabase would try to list databases (in order to check if it already exists)
without setting the database user, which could cause the following PostgreSQL error:
psql: FATAL: role "<database_user>" does not exist
Now fixed!
This second version delays the closing of the database connection to the very last moment.
- fixed
gnugat-pomm-foundation:database:createto work even if the database already exists - fixed
gnugat-pomm-foundation:database:dropto work even if the database doesn't exists - added Symfony 3 support
BC break:
ClosingConnectionListenernow listens tokernel.terminateinstead ofkernel.response.
- fixed condition to set database password
- fixed CommandTest by preventing auto exit
This first version provides a QueryManagerInterface implementation with the following features:
- it will open a new database connection the first time
queryis called (lazy database connection) - it has a
shutdownmethod that closes the database connection (called onkernel.responseevent byClosingConnectionListener)
It also provides a command to create the database and one to close it.