{{ question.headline|e }}
-{{ question.body }}
- {% endfor %} -{% endfor %} \ No newline at end of file diff --git a/src/FaqBundle/Resources/views/Faq/preview_category_partial.html.twig b/src/FaqBundle/Resources/views/Faq/preview_category_partial.html.twig deleted file mode 100644 index cff12569d3..0000000000 --- a/src/FaqBundle/Resources/views/Faq/preview_category_partial.html.twig +++ /dev/null @@ -1,9 +0,0 @@ - - - {{ 'Preview'|trans({}, 'SonataAdminBundle') }} - - diff --git a/src/FaqBundle/Resources/views/Faq/preview_question_partial.html.twig b/src/FaqBundle/Resources/views/Faq/preview_question_partial.html.twig deleted file mode 100644 index 5966c3df7e..0000000000 --- a/src/FaqBundle/Resources/views/Faq/preview_question_partial.html.twig +++ /dev/null @@ -1,11 +0,0 @@ -{% if object.category %} - - - {{ 'Preview'|trans({}, 'SonataAdminBundle') }} - -{% endif %} - diff --git a/src/Kernel.php b/src/Kernel.php index 742ec3a86f..cac5669ffa 100644 --- a/src/Kernel.php +++ b/src/Kernel.php @@ -12,23 +12,17 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\Routing\RouteCollectionBuilder; -/** - * Class Kernel. - */ class Kernel extends BaseKernel { use MicroKernelTrait; - public const CONFIG_EXTS = '.{php,xml,yaml,yml}'; + private const CONFIG_EXTS = '.{php,xml,yaml,yml}'; - /** - * @return \Generator|\Symfony\Component\HttpKernel\Bundle\BundleInterface[] - */ - public function registerBundles() + public function registerBundles(): iterable { $contents = require $this->getProjectDir().'/config/bundles.php'; foreach ($contents as $class => $envs) { - if (isset($envs['all']) || isset($envs[$this->environment])) { + if ($envs[$this->environment] ?? $envs['all'] ?? false) { yield new $class(); } } @@ -66,11 +60,12 @@ class Kernel extends BaseKernel protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void { $container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php')); - $container->setParameter('container.dumper.inline_class_loader', true); + $container->setParameter('container.dumper.inline_class_loader', \PHP_VERSION_ID < 70400 || $this->debug); + $container->setParameter('container.dumper.inline_factories', true); $confDir = $this->getProjectDir().'/config'; $loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob'); - $loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); + $loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob'); $loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob'); $loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob'); } @@ -79,7 +74,7 @@ class Kernel extends BaseKernel { $confDir = $this->getProjectDir().'/config'; - $routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); + $routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob'); $routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob'); } diff --git a/src/MediaBundle/ChamiloMediaBundle.php b/src/MediaBundle/ChamiloMediaBundle.php deleted file mode 100644 index 8681a8edf9..0000000000 --- a/src/MediaBundle/ChamiloMediaBundle.php +++ /dev/null @@ -1,19 +0,0 @@ -{{ element.caption }}
-{{ sonata_page_render_container('content', page) }}
-{% endfor %} \ No newline at end of file diff --git a/src/TimelineBundle/ChamiloTimelineBundle.php b/src/TimelineBundle/ChamiloTimelineBundle.php deleted file mode 100644 index d9ddfddc21..0000000000 --- a/src/TimelineBundle/ChamiloTimelineBundle.php +++ /dev/null @@ -1,14 +0,0 @@ -id; - } -} diff --git a/src/TimelineBundle/Entity/ActionComponent.php b/src/TimelineBundle/Entity/ActionComponent.php deleted file mode 100644 index 273bdee588..0000000000 --- a/src/TimelineBundle/Entity/ActionComponent.php +++ /dev/null @@ -1,28 +0,0 @@ -id; - } -} diff --git a/src/TimelineBundle/Entity/Component.php b/src/TimelineBundle/Entity/Component.php deleted file mode 100644 index 33887aa6d8..0000000000 --- a/src/TimelineBundle/Entity/Component.php +++ /dev/null @@ -1,28 +0,0 @@ -id; - } -} diff --git a/src/TimelineBundle/Entity/Timeline.php b/src/TimelineBundle/Entity/Timeline.php deleted file mode 100644 index e5401554cb..0000000000 --- a/src/TimelineBundle/Entity/Timeline.php +++ /dev/null @@ -1,28 +0,0 @@ -id; - } -} diff --git a/src/TimelineBundle/Resources/config/doctrine/Action.orm.xml b/src/TimelineBundle/Resources/config/doctrine/Action.orm.xml deleted file mode 100644 index 0f0131275b..0000000000 --- a/src/TimelineBundle/Resources/config/doctrine/Action.orm.xml +++ /dev/null @@ -1,21 +0,0 @@ - -{{ 'no_action'|trans({}, "SonataTimelineBundle") }}
- {% endfor %} -