##Dans composer.json
"sonata-project/doctrine-orm-admin-bundle": "dev-master"
puis faire php composer.phar update
##Dans app/appKernel.php ajouter les bundle :
new Sonata\CoreBundle\SonataCoreBundle(),
<?php | |
define('TEST_KEY', 'are_we_glued'); | |
$redis = new Redis(); | |
try { | |
$redis->connect('localhost', 6379); | |
$redis->set(TEST_KEY, 'yes'); | |
$glueStatus = $redis->get(TEST_KEY); | |
if ($glueStatus) { | |
$testKey = TEST_KEY; | |
echo "Glued with the Redis key value store:" . PHP_EOL; |
<?php | |
// ... | |
class ProductAdmin extends SonataAdmin | |
{ | |
// ... | |
protected function configureDatagridFilters(DatagridMapper $filter) | |
{ |
##Dans composer.json
"sonata-project/doctrine-orm-admin-bundle": "dev-master"
puis faire php composer.phar update
##Dans app/appKernel.php ajouter les bundle :
new Sonata\CoreBundle\SonataCoreBundle(),