public function addSection($name, $label, $position=0)
    {
        $sectionManager = $this->container->get('admin.configuration.configsection_manager');
        $section = $sectionManager->getRepository()->findOneByName($name);
        if (!$section) {
            $section = new ConfigSection();
            $section->setName($name);
            $section->setSLabel($label);
            $section->setPosition($position);
            $sectionManager->create($section);

            return true;
        }

        return false;
    }
public function addSection($name, $label, $position=0)
    {
        $sectionManager = $this->container->get('admin.configuration.configsection_manager');
        $section = $sectionManager->getRepository()->findOneByName($name);
        if (!$section) {
            $section = new ConfigSection();
            $section->setName($name);
            $section->setSLabel($label);
            $section->setPosition($position);
            $sectionManager->create($section);

            return true;
        }

        return false;
    }
public function addSection ( $ name , $ label , $ position = 0 ) { $ sectionManager = $ this -> container -> get ( 'admin.configuration.configsection_manager' ) ; $ section = $ sectionManager -> getRepository ( ) -> findOneByName ( $ name ) ; if ( ! $ section ) { $ section = new ConfigSection ( ) ; $ section -> setName ( $ name ) ; $ section -> setSLabel ( $ label ) ; $ section -> setPosition ( $ position ) ; $ sectionManager -> create ( $ section ) ; return true ; } return false ; }
Add a ConfigSection
If a ConfigSection with the same name exists then it does nothing

@param string  $name     Name
@param string  $label    Label
@param integer $position Position

@return boolean
Add a ConfigSection If a ConfigSection with the same name exists then it does nothing