Skip to content
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

DebugClassLoader is hijacking loadClass so __constructStatic is never called #22

Open
oleg-andreyev opened this issue Feb 22, 2020 · 0 comments · May be fixed by #23
Open

DebugClassLoader is hijacking loadClass so __constructStatic is never called #22

oleg-andreyev opened this issue Feb 22, 2020 · 0 comments · May be fixed by #23
Labels
bug Something isn't working

Comments

@oleg-andreyev
Copy link
Collaborator

oleg-andreyev commented Feb 22, 2020

index.php (default for symfony 4.4)
inconjucation with #20

<?php

use App\Kernel;
use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;

require dirname(__DIR__) . '/config/bootstrap.php';

if ($_SERVER['APP_DEBUG']) {
    umask(0000);

    Debug::enable();
}

bootstrap.php

<?php

use Dbalabka\StaticConstructorLoader\StaticConstructorLoader;
use Symfony\Component\Dotenv\Dotenv;

$composer = require dirname(__DIR__) . '/vendor/autoload.php';
$loader = new StaticConstructorLoader($composer);
@dbalabka dbalabka added the bug Something isn't working label Apr 1, 2020
@oleg-andreyev oleg-andreyev linked a pull request May 19, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants