Skip to content

Commit 0c56643

Browse files
committed
minor #13607 add use statement for the needed extension class (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- add use statement for the needed extension class fixes #13603 Commits ------- da1418b add use statement for the needed extension class
2 parents 0d9e258 + da1418b commit 0c56643

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bundles/extension.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ 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;
153154
use AppBundle\Utils\Slugger;
155+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
154156

155157
// ...
156158
public function load(array $configs, ContainerBuilder $container)
@@ -182,6 +184,8 @@ class names::
182184

183185
The classes to compile can also be added using file path patterns::
184186

187+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
188+
185189
// ...
186190
public function load(array $configs, ContainerBuilder $container)
187191
{

0 commit comments

Comments
 (0)