kayue / KayueWordpressBundle

A Symfony 2 bundle for providing WordPress repositories and authenticating users (login).
101 stars 43 forks source link

Support WordPress 4 login cookie. #63

Open kayue opened 9 years ago

Louis94 commented 9 years ago

@kayue hi! Just wanted to ask you what is this service "doctrine.orm.default_metadata_driver" ? Symfony keeps telling me that it doesn't exist.

kayue commented 9 years ago

@Louis94 It should come with Doctrine, see:

https://github.com/kayue/symfony-wordpress-edition/blob/master/app/config/config.yml#L43-L65

kayue commented 9 years ago

@Louis94 In fact it is throw by https://github.com/kayue/KayueWordpressBundle/blob/6549d2a7558f95220477471837046f39a1b5ccb4/DependencyInjection/Compiler/PreventDoctrineMetadataCompilerPass.php

It is used to prevent dumpping WordPress schema when doctrine:schema:update command is execute. You can add a try catch block in this class to prevent exception, it won't affect the functionality.

Louis94 commented 9 years ago

@kayue ok, thank you :)