Skip to content

Commit e77422e

Browse files
authored
Update service_subscribers_locators.rst
Added the missing use statement, even though Symfony is nice enough to give the missing use statement on a silver platter. I did not check versions going forward in the documentation. ``` Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "Reference" from namespace "DealExpress\ApiBundle\DependencyInjection\Compiler". Did you forget a "use" statement for e.g. "Google_Service_Compute_Reference", "phpDocumentor\Reflection\DocBlock\Tags\Reference\Reference", "Symfony\Component\DependencyInjection\Reference" or "Symfony\Component\Validator\Tests\Fixtures\Reference"? ```
1 parent e9c6102 commit e77422e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

service_container/service_subscribers_locators.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ will share identical locators among all the services referencing them::
393393

394394
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
395395
use Symfony\Component\DependencyInjection\ContainerBuilder;
396-
396+
use Symfony\Component\DependencyInjection\Reference;
397+
397398
public function process(ContainerBuilder $container)
398399
{
399400
// ...

0 commit comments

Comments
 (0)