Category : bundle

How do you implement the Symfony validator inside a bundle that you created? I have an Extension class, a CompilerPass and a ‘services.xml’ file. The validator is supposed to be injected in a middleware, and I tried in my Extension using: $container->registerForAutoConfiguration(ValidatorInterface::class)->addTag(…); but if I try finding the tag and dumping the key in my ..

Read more

I’m trying something so much time but maybe it’s not even possible. Sorry for my bad language. So, I followed Symfony Doc https://symfony.com/doc/current/bundles.html to create new Bundle, and than I followed https://symfony.com/doc/current/bundles/extension.html to create DI extension. My files: AcmeHelloExtension.php namespace AppAcmeHelloBundleDependencyInjection; use SymfonyComponentConfigFileLocator; use SymfonyComponentDependencyInjectionLoaderXmlFileLoader; use SymfonyComponentDependencyInjectionExtensionExtension; use SymfonyComponentDependencyInjectionContainerBuilder; class AcmeHelloExtension extends Extension { public ..

Read more

I’m trying to integrate CustomOptionsPlugin in my sylius project https://github.com/Brille24/SyliusCustomOptionsPlugin I dont know how to add fixtures brille24_sylius_customer_options_plugin_fixtures.yaml and how to migrate the DB. This is why I have this issue An exception occurred while executing ‘SELECT b0_.type AS type_0, b0_.configuration AS configuration_1, b0_.code AS code_2, b0_.required AS required_3, b0_.id AS id_4 FROM brille24_customer_option b0_ ..

Read more