mamuz / PhpDependencyAnalysis

Static code analysis to find violations in a dependency graph
http://mamuz.github.io/PhpDependencyAnalysis/
MIT License
561 stars 45 forks source link

Question: Usage graph for single class #46

Open Bogdaan opened 5 years ago

Bogdaan commented 5 years ago

Hi. I'm trying to analyze usage for single class on whole project.

It's possible to create such configuration?

fabpico commented 4 years ago

You can use the filePattern option to analyze only a specific class.

Instead of filePattern: '*.php' like in the example, use filePattern: 'MyClass.php'.