PHP code example of melazhari / sulu-admin-bar-bundle

1. Go to this page and download the library: Download melazhari/sulu-admin-bar-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

melazhari / sulu-admin-bar-bundle example snippets


// config/bundles.php
return [
    // ...
    Elazhari\SuluAdminBarBundle\AdminBarBundle::class => ['all' => true],
];

public function getByEntity($entityClass, $id, $locale, $object = null)
{
    return [
        '_controller' => '...',
        'id' => $formation->getId(),
        'formation' => $formation,   // <- request attribute
    ];
}
bash
composer elazhari/sulu-admin-bar-bundle/install.php
bash
php bundles/AdminBarBundle/install.php
bash
composer dump-autoload
bash
php bin/console assets:install public
bash
php bin/console cache:clear
php bin/websiteconsole cache:clear