craue / CraueConfigBundle

Database-stored settings made available via a service for your Symfony project.
MIT License
173 stars 35 forks source link

How to get settings into a Symfony Command? #48

Closed KhanMaytok closed 5 years ago

KhanMaytok commented 5 years ago

Hi. I'm trying to get the settings work into a symfony command that I created

The command extends from ContainerAwareCommand.

I tried with

$this->getContainer()->getParameter('craue_config')->get('enterprise_ruc')

But doesn't works

craue commented 5 years ago

Try $this->getContainer()->get('craue_config')->get('enterprise_ruc') instead.

KhanMaytok commented 5 years ago

Works! many thanks for the response