-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fatal error: Cannot declare class because the name is already in use #29
Comments
This related to the #22. Unfortunately, this bundle could not work with SF>=3.4 at the moment. |
@lisachenko probably should declare version dependency in the composer.json file. |
There are no workarounds? Trying to make it work too with Sf4 and it seems my aspect never gets called. Seems like everything registers itself well when I use console debug:aspect, debug:advisor, etc. I was able to fix the containerClass option being null because I would pass in |
I'm sorry that I haven't time to work on this right now ( Symfony has a lot of major changes that break the AOP engine logic. It's unclear now how to do this in right way, because all generated stuff do not use Need to put a restriction into |
I conducted an experiment with a clean project and nothing works.
symfony new aop 3.4
cd aop
composer require goaop/goaop-symfony-bundle
sed -i '/$bundles = \[/ a \ \ new Go\\Symfony\\GoAopBundle\\GoAopBundle(),' app/AppKernel.php
composer dumpautoload
After request to app:
Make crutch bugfix:
sed -i 's/container_class: ~/container_class: Go\\Core\\GoAspectContainer/' app/config/config.yml
php bin/console cache:clear --env=prod
Opps:
Hard lifehack:
rm -rf var/cache/prod/
New oops:
php bin/console cache:warmup:aop --env=prod
Any ideas? Any tips? Start guide?
The text was updated successfully, but these errors were encountered: