Skip to content

Commit 7674432

Browse files
committed
add use statement for the needed extension class
1 parent 0d9e258 commit 7674432

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bundles/extension.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ I/O operations and increases the application performance.
146146
Your bundles can also add their own classes into this file thanks to the
147147
``addClassesToCompile()`` and ``addAnnotatedClassesToCompile()`` methods (both
148148
work in the same way, but the second one is for classes that contain PHP
149-
annotations). Define the classes to compile as an array of their fully qualified
150-
class names::
149+
annotations). These methods are provied by the ``Extension`` class from the
150+
HttpKernel component. Define the classes to compile as an array of their
151+
fully qualified class names::
151152

152153
use AppBundle\Manager\UserManager;
153-
use AppBundle\Utils\Slugger;
154+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
154155

155156
// ...
156157
public function load(array $configs, ContainerBuilder $container)
@@ -182,6 +183,8 @@ class names::
182183

183184
The classes to compile can also be added using file path patterns::
184185

186+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
187+
185188
// ...
186189
public function load(array $configs, ContainerBuilder $container)
187190
{

0 commit comments

Comments
 (0)