Skip to content

Commit 466a52c

Browse files
committed
minor #14175 Update service_subscribers_locators.rst (ksteinmetz)
This PR was merged into the 4.4 branch. Discussion ---------- 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"? ``` <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- e77422e Update service_subscribers_locators.rst
2 parents ffa6270 + e77422e commit 466a52c

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)