app/AppKernel.php
public function registerBundles()
    {
        $bundles = [
            new EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle(), //正式版将会废弃
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new PHPDish\Bundle\AdminBundle\PHPDishAdminBundle(),
            new PHPDish\Bundle\WebBundle\PHPDishWebBundle(),
        ];

        // 注册插件
        $plugins = [

        ];

        return array_merge(parent::registerBundles(), $bundles, $plugins);
    }
public function registerBundles()
    {
        $bundles = [
            new EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle(), //正式版将会废弃
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new PHPDish\Bundle\AdminBundle\PHPDishAdminBundle(),
            new PHPDish\Bundle\WebBundle\PHPDishWebBundle(),
        ];

        // 注册插件
        $plugins = [

        ];

        return array_merge(parent::registerBundles(), $bundles, $plugins);
    }
{@inheritdoc}