Symfony表单面板未显示在探查器中

时间:2018-11-04 00:59:04

标签: symfony panel missing-features

我正在升级symfony 3.1中的一个旧应用程序,该应用程序在左侧的“ Validation”面板(这是唯一缺少的面板)之后丢失了Forms面板。我认为升级到最新的3.4.x(当前为3.4.18)可以解决问题。我什至删除了整个供应商树,并从composer中安装了它,但是我看不到它在Web Profiler中,尽管我看到了“新”绿色栏和版本。

任何新项目或由我自己创建的项目都具有它,因此我认为这与我的安装无关。我什至已经比较了composer.json试图找出可能丢失的内容,但是找不到任何有用的东西。还有... / view / Collectors / form.html.twig文件。

这是我的AppKernel.php:

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function __construct($environment, $debug)
    {
        date_default_timezone_set('Europe/Paris');
        parent::__construct($environment, $debug);
    }

    public function registerBundles()
    {
        $bundles = [
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new Symfony\Bundle\MonologBundle\MonologBundle(),
            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
            new Vich\UploaderBundle\VichUploaderBundle(),
            new Liip\ImagineBundle\LiipImagineBundle(),
            new Ikadoc\KCFinderBundle\IkadocKCFinderBundle(),
            new Core23\DompdfBundle\Core23DompdfBundle(),
            new AppBundle\AppBundle(),
        ];

        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
            $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
            $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
            $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
            $bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
        }

        return $bundles;
    }

    public function getRootDir()
    {
        return __DIR__;
    }

    public function getCacheDir()
    {
        return dirname(__DIR__).'/var/cache/'.$this->getEnvironment();
    }

    public function getLogDir()
    {
        return dirname(__DIR__).'/var/logs';
    }

    public function registerContainerConfiguration(LoaderInterface $loader)
    {
       $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
    }
}

下面是登录页面的屏幕快照,其中有一个表单: screenshot at login page

我想念什么?

0 个答案:

没有答案