Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Add visitor that extracts dependencies from dependency injection #1

Open
j6s opened this issue Nov 30, 2018 · 0 comments
Open

Add visitor that extracts dependencies from dependency injection #1

j6s opened this issue Nov 30, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@j6s
Copy link
Owner

j6s commented Nov 30, 2018

Currently if a class is injected from a dependency injection framework it is not tracked as a dependency.
There should be a Visitor/Extractor that detects dependency framework calls.

Examples (laravel):

app(MyClass::class);
app('MyVendor\\MyPackage\\MyClass');

If I have seen correctly both styles of referencing classes (Through strings and ::class) are handled by the PHP Parser as strings.

@j6s j6s added enhancement New feature or request good first issue Good for newcomers labels Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant