Skip to content

Commit 19f9510

Browse files
committed
minor #11969 Corrected wrong class used in "Locating Resources" (filip-t)
This PR was squashed before being merged into the 3.4 branch (closes #11969). Discussion ---------- Corrected wrong class used in "Locating Resources" HttpKernel does not contain a locateResource method. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap 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 ------- 0a7b27a Corrected wrong class used in \"Locating Resources\"
2 parents bdaad9d + 0a7b27a commit 19f9510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/http_kernel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,10 @@ directory of AppBundle.
759759
The HttpKernel component provides a method called :method:`Symfony\\Component\\HttpKernel\\Kernel::locateResource`
760760
which can be used to transform logical paths into physical paths::
761761

762-
use Symfony\Component\HttpKernel\HttpKernel;
762+
use Symfony\Component\HttpKernel\Kernel;
763763

764764
// ...
765-
$kernel = new HttpKernel($dispatcher, $resolver);
765+
$kernel = new Kernel($dispatcher, $resolver);
766766
$path = $kernel->locateResource('@AppBundle/Resources/config/services.xml');
767767

768768
Learn more

0 commit comments

Comments
 (0)