This tutorial is built using Symfony 4, but most of the concepts apply fine to Symfony 5!
// composer.json
{
"require": {
"php": "^7.1.3",
"ext-iconv": "*",
"doctrine/annotations": "^1.8", // v1.8.0
"knplabs/knp-markdown-bundle": "^1.7", // 1.7.0
"knpuniversity/lorem-ipsum-bundle": "*@dev", // dev-master
"nexylan/slack-bundle": "^2.0,<2.2", // v2.0.1
"php-http/guzzle6-adapter": "^1.1", // v1.1.1
"sensio/framework-extra-bundle": "^5.1", // v5.1.6
"symfony/asset": "^4.0", // v4.0.6
"symfony/console": "^4.0", // v4.0.6
"symfony/flex": "^1.0", // v1.21.6
"symfony/framework-bundle": "^4.0", // v4.0.6
"symfony/lts": "^4@dev", // dev-master
"symfony/twig-bundle": "^4.0", // v4.0.6
"symfony/web-server-bundle": "^4.0", // v4.0.6
"symfony/yaml": "^4.0", // v4.0.6
"weaverryan_test/lorem-ipsum-bundle": "^1.0" // v1.0.0
},
"require-dev": {
"easycorp/easy-log-handler": "^1.0.2", // v1.0.4
"sensiolabs/security-checker": "^4.1", // v4.1.8
"symfony/debug-bundle": "^3.3|^4.0", // v4.0.6
"symfony/dotenv": "^4.0", // v4.0.6
"symfony/maker-bundle": "^1.0", // v1.1.1
"symfony/monolog-bundle": "^3.0", // v3.2.0
"symfony/phpunit-bridge": "^3.3|^4.0", // v4.3.3
"symfony/stopwatch": "^3.3|^4.0", // v4.0.6
"symfony/var-dumper": "^3.3|^4.0", // v4.0.6
"symfony/web-profiler-bundle": "^3.3|^4.0" // v4.0.6
}
}
7 Comments
Hey Ryan!
I just used my extension to add a custom namespace to the twig bundle extension by finding this documentation article:
https://symfony.com/doc/cur...
That works!!! BUT .... If I am right - there is in the future no way for other bundles to extend the twig paths again. Because the documentation sais:
Is there a way - to like really overwrite the configuration of an extension from another bundle without obstructing a way for other bundles inside the symstem to do the same
Hey Michael B.
Probably using CompilerPass will give you more power to achive what you need!
Cheers!
Hi,
How .yml file configuration can be generate automaticaly in config/packages ?
thanks for answer and tutorials.
Hi valentin thibault!
For that, you need to create a "recipe" for your package :). You do that by creating pull request to this repository - https://github.com/symfony/...
Let me know if you have any questions about that.
Cheers!
Hi,
Thx for answer, it's helpful.
What if i want to have a local "recipe" ? Is it possible ?
My bundle is for my company projects, i can't publish it online.
Cheers!
Hey valentin thibault!
Ah! Unfortunately, that is not supported (there was BETA support for this, but it didn't get enough interest). There is one person that has built something to help with this - you could give it a try :) https://blog.mayflower.de/8...
Cheers!
Thx a lot, i'll search for a solution ;)
Cheers !
"Houston: no signs of life"
Start the conversation!