Skip to content

Instantly share code, notes, and snippets.

@graste
Forked from goetas/phpda.yml
Created May 27, 2020 15:07
Show Gist options
  • Save graste/04da15bc4d4faa4aaeeac7676cad051d to your computer and use it in GitHub Desktop.
Save graste/04da15bc4d4faa4aaeeac7676cad051d to your computer and use it in GitHub Desktop.
Doctrine Migrations dependency analysis
mode: 'usage'
source: './lib'
filePattern: '*.php'
formatter: 'PhpDA\Writer\Strategy\Svg'
target: './complex-cycle.svg'
groupLength: 3
visitorOptions:
PhpDA\Parser\Visitor\Required\DeclaredNamespaceCollector: {minDepth: 2, sliceLength: 6, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}
PhpDA\Parser\Visitor\Required\MetaNamespaceCollector: {minDepth: 2, sliceLength: 4, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}
PhpDA\Parser\Visitor\Required\UsedNamespaceCollector: {minDepth: 2, sliceLength: 4, excludePattern: '/^((?!.*(Doctrine\\Migrations))|(?=.*Exception)).*$/'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment