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

autoload.php with supervisord #128

Open
Giuffre opened this issue Jun 4, 2015 · 2 comments
Open

autoload.php with supervisord #128

Giuffre opened this issue Jun 4, 2015 · 2 comments

Comments

@Giuffre
Copy link

Giuffre commented Jun 4, 2015

Hi,
I noticed that in the documentation, about of supervisord configuration, is referred to the autoload.php rein the vendor/ folder but if you want to properly use Doctrine then we must do point to autoload.php in app/ folder where are registered Doctrine's annotations.

@luishdez
Copy link

Hi @Giuffre I couldn't make it work loading the autoload . I ended up using the symfony console command with --foreground working fine so far …

@eretica
Copy link

eretica commented Feb 15, 2017

I had the same problem
I solved it by appending this

    protected function createKernel()
    {
        // set Doctrine annotation loader
        $loader = require $this->args['kernel.root_dir'] . '/autoload.php';
        AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

        return parent::createKernel();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants