Skip to content

Commit

Permalink
Dropped obsolete Debug Bundle DebugTemplate class
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Apr 18, 2024
1 parent 6403884 commit 1bbf42e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 110 deletions.
26 changes: 9 additions & 17 deletions src/bundle/Debug/DependencyInjection/IbexaDebugExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,21 @@
*/
namespace Ibexa\Bundle\Debug\DependencyInjection;

use Ibexa\Bundle\Debug\Twig\DebugTemplate;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

class IbexaDebugExtension extends Extension implements PrependExtensionInterface
/**
* @internal
* @final
*/
class IbexaDebugExtension extends Extension
{
public function load(array $configs, ContainerBuilder $container)
/**
* @throws \Exception
*/
public function load(array $configs, ContainerBuilder $container): void
{
$loader = new Loader\YamlFileLoader(
$container,
Expand All @@ -25,19 +30,6 @@ public function load(array $configs, ContainerBuilder $container)
// Base services and services overrides
$loader->load('services.yml');
}

/**
* Sets the twig base template class to this bundle's in order to collect template infos.
*/
public function prepend(ContainerBuilder $container)
{
if ($container->getParameter('kernel.debug')) {
$container->prependExtensionConfig(
'twig',
['base_template_class' => DebugTemplate::class]
);
}
}
}

class_alias(IbexaDebugExtension::class, 'eZ\Bundle\EzPublishDebugBundle\DependencyInjection\EzPublishDebugExtension');
93 changes: 0 additions & 93 deletions src/bundle/Debug/Twig/DebugTemplate.php

This file was deleted.

0 comments on commit 1bbf42e

Please sign in to comment.