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

Add visitor that extracts dependencies from dependency injection #1

@j6s

Description

@j6s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions