Skip to content

Commit

Permalink
Remove TwigExtension.php (#329)
Browse files Browse the repository at this point in the history
* Remove TwigExtension.php

* fix test

Co-authored-by: a.dmitryuk <[email protected]>
Co-authored-by: Damien Harper <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2022
1 parent 90cc5ad commit 9ad2367
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 129 deletions.
7 changes: 0 additions & 7 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ services:
- { method: setContainer, arguments: ['@service_container'] }
tags: ['controller.service_arguments']

DH\AuditorBundle\Twig\Extension\TwigExtension:
class: DH\AuditorBundle\Twig\Extension\TwigExtension
arguments:
- '@doctrine'
tags:
- { name: twig.extension }

DH\AuditorBundle\User\UserProvider:
class: DH\AuditorBundle\User\UserProvider
arguments: ['@security.helper', '@DH\Auditor\Provider\Doctrine\Configuration']
Expand Down
40 changes: 0 additions & 40 deletions src/Twig/Extension/TwigExtension.php

This file was deleted.

4 changes: 0 additions & 4 deletions tests/DHAuditorBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use DH\AuditorBundle\Controller\ViewerController;
use DH\AuditorBundle\DHAuditorBundle;
use DH\AuditorBundle\Event\ConsoleEventSubscriber;
use DH\AuditorBundle\Twig\Extension\TwigExtension;
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
use Nyholm\BundleTest\BaseBundleTestCase;
use Nyholm\BundleTest\CompilerPass\PublicServicePass;
Expand Down Expand Up @@ -80,9 +79,6 @@ public function testInitBundle(): void
self::assertTrue($container->has(\DH\AuditorBundle\Controller\ViewerController::class));
self::assertInstanceOf(ViewerController::class, $container->get(\DH\AuditorBundle\Controller\ViewerController::class));

self::assertTrue($container->has(\DH\AuditorBundle\Twig\Extension\TwigExtension::class));
self::assertInstanceOf(TwigExtension::class, $container->get(\DH\AuditorBundle\Twig\Extension\TwigExtension::class));

self::assertTrue($container->has(\DH\AuditorBundle\Event\ConsoleEventSubscriber::class));
self::assertInstanceOf(ConsoleEventSubscriber::class, $container->get(\DH\AuditorBundle\Event\ConsoleEventSubscriber::class));
}
Expand Down
78 changes: 0 additions & 78 deletions tests/Twig/Extension/TwigExtensionTest.php

This file was deleted.

0 comments on commit 9ad2367

Please sign in to comment.