addConfig() public méthode

Adds config to the builder.
public addConfig ( array $config )
$config array
 public function addPolicies(ConfigBuilderInterface $configBuilder)
 {
     $policiesConfig = [];
     foreach ($this->getFiles() as $file) {
         $configBuilder->addResource(new FileResource($file));
         $policiesConfig = array_merge_recursive($policiesConfig, Yaml::parse(file_get_contents($file)));
     }
     $configBuilder->addConfig($policiesConfig);
 }
 public function addPolicies(ConfigBuilderInterface $configBuilder)
 {
     $configBuilder->addConfig(['user' => ['register' => null]]);
 }
 public function addPolicies(ConfigBuilderInterface $configBuilder)
 {
     $configBuilder->addConfig($this->policies);
 }
 /**
  * Adds policies configuration hash to $configBuilder.
  *
  * Policies configuration hash contains declared modules, functions and limitations.
  * First level key is the module name, value is a hash of available functions, with function name as key.
  * Function value is an array of available limitations, identified by the alias declared in LimitationType service tag.
  * If no limitation is provided, value can be null.
  *
  * @return array
  */
 public function addPolicies(ConfigBuilderInterface $configBuilder)
 {
     $configBuilder->addConfig(["comment" => ["add" => null, "edit" => null, "delete" => null]]);
 }