As a quick'n'dirty hack, i wrapped the full AspectKernel->init() method with a check, if the constant is already defined. Which works for now.
cache:warmup
But the most important bug currently is in the warmup command. I get these errors (simplified some pathes):
[Symfony\Component\Config\Exception\FileLoaderLoadException]
File "/myproject/src/.../Doctrine/Orm/IdTrait.php" was not processed yet in my_project.authentication.controller
(which is being imported from "/myproject/src/.../Resources/config/routing.yml").
[TokenReflection\Exception\BrokerException] File "/myproject/src/.../Doctrine/Orm/IdTrait.php" was not processed yet.
On each warmup, more and more files end up in the cache, and it (currently) works on the 3rd try.
First of all, awesome bundle, thanks a lot! "Go! AOP PHP" itself is working great, but we got some problems with cache clear and warmup in symfony.
cache:clear
app/console cache:clear --no-warmup
works fine.But, when running
app/console cache:clear
(with implicit warmup), i get:When wrapping those with
!defined('AOP_ROOT_DIR')
,SourceTransformingLoader::register()
fails with:As a quick'n'dirty hack, i wrapped the full
AspectKernel->init()
method with a check, if the constant is already defined. Which works for now.cache:warmup
But the most important bug currently is in the warmup command. I get these errors (simplified some pathes):
On each warmup, more and more files end up in the cache, and it (currently) works on the 3rd try.
Some details of the current setup