-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DX] Add ability to disable AddClassesToCachePass compiler pass #17439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can't you simply exclude the var (or app/cache) directory from indexation? It shouldn't be a problem to an IDE to have this. I've personally never encountered a problem with this (or the above solutions provided). |
I do not want to exclude And one more thing, in cookbook entry http://symfony.com/doc/current/cookbook/debugging.html there is a section which describes how cache file could be renamed:
This is definetely does not work now, because |
@iltar what happens when you try to debug code, which in cache? |
I will try to developing with excluded cache folder, but inconsistent cookbook entry still an issue (and BC break for developing) |
We have another inconsistency here. The |
We could introduce an option that would make it possible to disable the cache warmer (meaning the service definition wouldn't be loaded when the option was disabled). By the way I created symfony/symfony-docs#6169 so that we remember to update the docs to reflect the new |
@Strate you can also mark the |
closing here as it this is more a matter of updating the documentation (see symfony/symfony-docs#6263 for the PR) |
There is no way to disable AddClassesToCachePass compiler pass.
It generates
classes.map
file, and thenClassCacheCacheWarmer
always generatedclasses.php
file.So, if I do
app/console cache:warmup
for my dev environment I got aclasses.php
file always, wihtout exceptions. But I want to disable that, as it described in http://symfony.com/doc/current/cookbook/debugging.html (my IDE is not very happy withclasses.php
file)The only one way to do that is to override
buildContainer
method inAppKernel.php
file and remove lineThere should be more convient way to do that.
The text was updated successfully, but these errors were encountered: