Download the PHP package gnugat/pomm-foundation-bundle without Composer
On this page you can find all versions of the php package gnugat/pomm-foundation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gnugat/pomm-foundation-bundle
More information about gnugat/pomm-foundation-bundle
Files in gnugat/pomm-foundation-bundle
Package pomm-foundation-bundle
Short Description A pomm-project/foundation integration in symfony
License MIT
Informations about the package pomm-foundation-bundle
PommFoundation Bundle
A pomm-project/foundation integration in Symfony.
This bundle provides Console Commands for your database, as well as a
Pomm's QueryManagerInterface
service to be able to make SQL queries in your
Symfony application.
The provided QueryManagerInterface
implementation is tied to a Connection:
- the first time it is called, opens a new connection
- the next times it is called, uses the existing connection
- if shutdown is called, closes the connection and goes back to step 1
This allows to keep a 1 to 1 relation between a HTTP request and a database Connection, which is important when the application is a long running process (e.g. tests, FastCGI, AMQP consumer, etc).
It also provides support parameter conversion for:
- booleans: from
false
to'f'
and fromtrue
to't'
\DateTime
: string formatted asY-m-d H:i:s T
Integrations
This bundle provides provides the following:
- the service
PommProject\Foundation\QueryManager\QueryManagerInterface
- the event listener
Gnugat\PommFoundationBundle\EventListener\ClosingConnectionListener
- the console commands:
gnugat-pomm-foundation:database:check-existence
(g:p:ch
)gnugat-pomm-foundation:database:close-connections
(g:p:cl
)gnugat-pomm-foundation:database:create
(g:p:cr
)gnugat-pomm-foundation:database:drop
(g:p:dr
)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
)
Installation
First provide the database configuration:
Then install gnugat/pomm-foundation-bundle
using Composer:
Finally add the following in your config/bundles.php
:
Usage
Inject the PommProject\Foundation\QueryManager\QueryManagerInterface
service in your own services:
Further documentation
You can see the current and past versions using one of the following:
- the
git tag
command - the releases page on Github
- the file listing the changes between versions
You can find more documentation at the following links:
- copyright and MIT license
- versioning and branching models
- contribution instructions
All versions of pomm-foundation-bundle with dependencies
pomm-project/foundation Version ^2.0
symfony/http-kernel Version ^6.0
symfony/dependency-injection Version ^6.0
symfony/config Version ^6.0
symfony/yaml Version ^6.0