DaDeather / phpstan-symfony-routing

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

How to generate var/cache/dev/url_generating_routes.xml file #1

Open laurent-clouet opened 10 months ago

laurent-clouet commented 10 months ago

Hello,

I have installed the lib with composer require --dev phpstan/extension-installer dadadev/phpstan-symfony-routing the next step is to configure phpstan but i don't have any var/cache/dev/url_generating_routes.xml do i need to do something more to generate/find it ?

I tried "bin/console debug:router" to be sure i have generated the symfony cache.

I'm running symfony 5.4, i've tested with the latest 6 stable too.

The contents of my var/cache/dev directory.

annotations.php                              App_KernelDevDebugContainer.php.lock     App_KernelDevDebugContainer.xml.meta  translations
App_KernelDevDebugContainerCompiler.log      App_KernelDevDebugContainer.php.meta     Container4IyaOXD                      twig
App_KernelDevDebugContainerDeprecations.log  App_KernelDevDebugContainer.preload.php  doctrine                              validation.php
DaDeather commented 10 months ago

Actually if you're using the APP_ENV=dev it should generate the file for routes as long as there are routes available.

Looking at this here it should still be generated in any version :shrug:.

What's your output of the command bin/console cache:clear ? And which files are there afterwards in the var/cache/dev directory?