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
Autoloader expected class #2747
Comments
Have you verified that the file listed in the error message exists? |
Yes, I did, it contains the code I included in the post...
Le lun. 17 sept. 2018 à 13:04, iltar <notifications@github.com> a écrit :
… Have you verified that the file listed in the error message exists?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2747 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/Aejib8j5UTZc1p7Nqp80b58m2bYrmnuYks5ub4G6gaJpZM4Wrefu>
.
|
The namespaced classes like https://github.com/twigphp/Twig/blob/2.x/src/Environment.php are only there for your IDE and not actually used (which is why they are wrapped in Line 970 in c8020aa
There should not be any problem normally. I can imagine, that you still have old versions of the classes in opcache and thus the aliases are not loaded. So try clearing opcache. |
Closing as there is no more feedback from the reporter. |
Hey, I've been struggling for a few days and no one seems to have the answer on stackoverflow either, so here I am. I've been using symfony 4 successfully till about 5 days ago, when a sudden bug appeared on the online version. I decide to re upload everything but a bug remain, the autoloader doesn't manage to load any class from twig. Looking at the code for the classes, they are all inside some if(\false) conditions, which obviously explains why the classes aren't loading. Is this intended and if so how can I fix my project, or is it an error that happened due to the replacement of require_once by class_exists (the commit was on the 17 of june 2017 so I don't get how comes it stopped working just now). Here's one of the file that causes problem :
<?php namespace Twig\Extension; class_exists('Twig_ExtensionInterface'); if (\false) { interface ExtensionInterface extends \Twig_ExtensionInterface { } }
this is from https://github.com/twigphp/Twig/blob/2.x/src/Extension/ExtensionInterface.php
Here's my bug report from symfony :
.........
I really need to get this project working soon, so any help would be apreciated :)
The text was updated successfully, but these errors were encountered: