File tree 1 file changed +1
-2
lines changed
src/DependencyInjection/Compiler
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Cmf \Bundle \RoutingBundle \DependencyInjection \Compiler ;
13
13
14
- use Symfony \Bundle \FrameworkBundle \Templating \EngineInterface ;
15
14
use Symfony \Cmf \Bundle \RoutingBundle \Validator \Constraints \RouteDefaultsTemplatingValidator ;
16
15
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
17
16
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -29,7 +28,7 @@ class TemplatingValidatorPass implements CompilerPassInterface
29
28
*/
30
29
public function process (ContainerBuilder $ container )
31
30
{
32
- if (interface_exists (EngineInterface::class ) && $ container ->has ('templating ' )) {
31
+ if (interface_exists (' Symfony\Bundle\FrameworkBundle\Templating\ EngineInterface' ) && $ container ->has ('templating ' )) {
33
32
$ templatingDefinition = $ container ->findDefinition ('templating ' );
34
33
$ validatorDefinition = $ container ->getDefinition ('cmf_routing.validator.route_defaults ' );
35
34
$ validatorDefinition ->setClass (RouteDefaultsTemplatingValidator::class);
You can’t perform that action at this time.
0 commit comments