Download the PHP package exploring/status without Composer
On this page you can find all versions of the php package exploring/status. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package status
ExploringStatusBundle
This bundle aims to help with setting controller's operation status by elimination cumbersome checking of session flash bag.
Installation (via composer)
To install StatusBundle with Composer just add the following to your composer.json file:
{
// ...
require: {
"exploring/status": "dev-master"
}
}
Please replace the dev-master
with some concrete release tag, for example, 1.*
Then run:
php composer.phar update
And register the bundle within AppKernel.php
You are ready to roll.
Configuration
The bundle configuration is minimalistic. In order for it to work you just need:
Operation status can be stored either in session
(default) or apc
. In order to use apc
mode, depending of your php version, you might need to install it first.
This can be configured by specifying engine
config entry:
Setting the operation status:
Retrieving the operation status:
You can do it from within controller or from Twig
directly.
PHP:
Twig:
Twig templates can be overridden easily. Please see the official documentation for how-to.
Message groups:
Status messages can be grouped. In fact, when you set the status message goes to Default
group by default.
As for retrieving same rule applies as defined above - you only need to pass group name as argument.
PHP:
Twig:
All versions of status with dependencies
symfony/http-foundation Version ^5.4|6.*
twig/twig Version ^2.0|^3.0
symfony/config Version ^5.4|6.*
symfony/dependency-injection Version ^5.4|6.*
symfony/http-kernel Version ^5.4