You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found your nice UnifikDatabaseConfigBundle when searching for some database enabled configuration for Symfony. Been trying to set it up and finally succeeded, but I think something might be missing in the readme file. In order to have the configurator forms working I required the following setup in MyBundle\DependencyInjection\Controller.php.
(I found from debugging the code and afterwards found the text about it in ConfiguratorType, doh!)
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
I think it would be a big help to point out in the readme how the getConfigTreeBuilder should be structured and the nodes decorated with 'configurator' attribute. Also it might make sense to point out that the ConfigurationTree needs to be modeled before the Bundle works. Last thing, I think it would help to specify the that it's the bundle alias being used in the container_extension table and maybe give an example (it might be common knowledge for a Symfony developer, but wouldn't hurt :)
Do let me know if I should contribute to the readme.
Thanks
The text was updated successfully, but these errors were encountered:
The configurator form is still an experimental feature of the bundle and this is why it's not featured in the readme file.
But as this feature seems quite popular, i'll look into improving the documentation. Feel free to submit a PR to improve the documentation if you like.
I found your nice UnifikDatabaseConfigBundle when searching for some database enabled configuration for Symfony. Been trying to set it up and finally succeeded, but I think something might be missing in the readme file. In order to have the configurator forms working I required the following setup in MyBundle\DependencyInjection\Controller.php.
(I found from debugging the code and afterwards found the text about it in ConfiguratorType, doh!)
class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
}
I think it would be a big help to point out in the readme how the getConfigTreeBuilder should be structured and the nodes decorated with 'configurator' attribute. Also it might make sense to point out that the ConfigurationTree needs to be modeled before the Bundle works. Last thing, I think it would help to specify the that it's the bundle alias being used in the container_extension table and maybe give an example (it might be common knowledge for a Symfony developer, but wouldn't hurt :)
Do let me know if I should contribute to the readme.
Thanks
The text was updated successfully, but these errors were encountered: