Skip to content

Add docs about locateResource #4065

Closed
Closed
@weaverryan

Description

@weaverryan

This was a suggestion from a friend of mine (@tacman) about the missing docs for Kernel::locateResource:

$kernel = $container->getService('kernel');
$path = $kernel->locateResource('@AcmeDemoBundle/path/to/file/Foo.txt');

Additionally, it was interesting that he said he was first looking in the "Filesystem component docs" for something like this, and then later in the "Finder component docs". That's something to think about - those both make logical sense, but obviously aren't the right places to look. It makes me wonder how we can organize things better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions