-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ResourceBundle][proposal/idea]Doctrine driver factory #1087
Conversation
{ | ||
/** @var ContainerBuilder $container */ | ||
protected $container; | ||
/** @param string $prefix */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**
* @var
*/
@jjanvier done! |
public function __construct($driver, $className) | ||
{ | ||
parent::__construct(sprintf( | ||
'Driver "%s" is unsupported by %s.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not supported
@jjanvier, |
Rebased. |
Elegant solution, much cleaner 👍 |
Very nice Arnaud! 👍 Thank you! |
[ResourceBundle][proposal/idea]Doctrine driver factory
@Arn0d welcome bro. We'll have to celebrate this 🍻 |
@jjanvier yes, next friday... Cuitas les bananas! |
[ResourceBundle][proposal/idea]Doctrine driver factory
I created a factory for the doctrine driver (defined in the
dependencyInjector
directory). Before this PR, a factory was 'simulated' in theSyliusResourceExtension
. The driver used inBaseExtension
was hard coded too. The folderFactory
was renamed toDriver
because it was not really factories IMO. Spec are added too for each Driver.@Sylius, is it a good idea (I hope!)?