-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
entryToMethodMapping differs from methods #638
Comments
Thanks for the report. Here is a possible scenario:
PHP-DI/src/Compiler/Compiler.php Line 153 in 516caff
PHP-DI/src/Compiler/Compiler.php Lines 120 to 121 in 516caff
PHP-DI/src/Compiler/Compiler.php Line 249 in 516caff
But we never So I don't know why/when/how but maybe we generate the method a first time, then it is Also could you please detail what kind of definition it is? |
I come across the exact same problem:
It used to happen when my demo or stage environment are starting. We compile container during the build, and it is in Docker image, but id does not have this method or mapping with that id. Dunno what to do next. In 30% of cases we have this problem. Any idea how to work with this, or debug? And I'm afraid I can't get the definition over this problem cause I've get report from CI and my env is not running anymore at this moment. I will try to set some logger to it. |
OK, i've found problem but dunno how does it appears... My deployment process looks like that: |
Hello,
we're using PHP DI with
enableCompilation
in one of our projects for a month now.Everything was fine so far, but today we got the following error:
After investigating a bit we discovered that the generated
CompiledContainer
class has non-existing methods defined in theMETHOD_MAPPING
array.I took a look at the part which generates the
CompiledContainer
file and can't see a reason how this can happen.Do you have any ideas or has anyone experienced this behavior before?
Our deployment process cleans the cache directory and runs a PHP script that builds a container instance to generate the cache file.
The text was updated successfully, but these errors were encountered: