I have an old project that does not use namespace (only ) and a set of classes alias.
I'm trying to implement a namespace filter to mimic package (namespace) and class alias.
I discovered that the filter is never called. Here is a simplified scenario to reproduce the issue.
My Environment (version of the project, operating system, or hardware)
Debian 9
PhpDependencyAnalysis by Marco Muths v1.3.1
PHP 5.6.40-1+0~20190111135530.9+stretch~1.gbp5f42c9 (cli)
dot - graphviz version 2.38.0 (20140413.2041)
<?php
namespace PS\Plugin;
use PhpDA\Parser\Filter\NamespaceFilterInterface;
class CoreNamespaceFilter implements NamespaceFilterInterface
{
public function filter(array $nameParts)
{
die(print_r($nameParts,1));
}
}
When I run this command:
phpda analyze phpda.yml
Actual behavior:
svg is generated but filter never called
( Never die - Note that a die in the constructer works as expected - hence plugins is loaded )
I have an old project that does not use namespace (only ) and a set of classes alias. I'm trying to implement a namespace filter to mimic package (namespace) and class alias. I discovered that the filter is never called. Here is a simplified scenario to reproduce the issue.
My Environment (version of the project, operating system, or hardware)
My
phpda.yml
:My filter
When I run this command:
Actual behavior: svg is generated but filter never called ( Never die - Note that a die in the constructer works as expected - hence plugins is loaded )
Expected behavior: filter to be called.