DaDeather / phpstan-symfony-routing

A phpstan plugin to analyze generating of routes from symfony routing.
MIT License
2 stars 1 forks source link

PHPStan Symfony Framework extensions and rules

Latest Stable Version License

This extension provides following features:

Installation

To use this extension, require it in Composer:

composer require --dev dadadev/phpstan-symfony-routing

If you also install phpstan/extension-installer then you're all set!

Manual installation If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config: ``` includes: - vendor/dadadev/phpstan-symfony-routing/extension.neon ``` To perform framework-specific checks, include also this file: ``` includes: - vendor/dadadev/phpstan-symfony-routing/rules.neon ```

Analysis of generating URLs

You have to provide a path to url_generating_routes.php for the url generating analysis to work.

parameters:
    symfony:
      urlGeneratingRulesFile: var/cache/dev/url_generating_routes.xml