diff --git a/cookbook/routing/custom_route_loader.rst b/cookbook/routing/custom_route_loader.rst index 42ab3ad17ed..14f9142bc04 100644 --- a/cookbook/routing/custom_route_loader.rst +++ b/cookbook/routing/custom_route_loader.rst @@ -66,7 +66,7 @@ type you want. The resource name itself is not actually used in the example:: namespace Acme\DemoBundle\Routing; use Symfony\Component\Config\Loader\LoaderInterface; - use Symfony\Component\Config\Loader\LoaderResolver; + use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; @@ -110,7 +110,7 @@ type you want. The resource name itself is not actually used in the example:: // and if you do, using the Loader base class is easier (see below) } - public function setResolver(LoaderResolver $resolver) + public function setResolver(LoaderResolverInterface $resolver) { // same as above }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: