public function build()
    {
        if ($this->container->hasDefinition($this->definitionName())) {
            $this->container->getDefinition(
                $this->definitionName()
            )->replaceArgument(0, array_unique($this->configuration, SORT_REGULAR));
        }
        if ($this->container->hasDefinition($this->definitionApiName())) {
            foreach ($this->configuration as $key => $config) {
                $this->configuration[$key]['enabled'] = $config['api_enabled'];

                if (array_key_exists('type', $config)) {
                    $this->configuration[$key]['type'] = $config['api_type'];
                }
            }

            $this->container->getDefinition(
                $this->definitionApiName()
            )->replaceArgument(0, array_unique($this->configuration, SORT_REGULAR));
        }

        return $this->container;
    }
public function build()
    {
        if ($this->container->hasDefinition($this->definitionName())) {
            $this->container->getDefinition(
                $this->definitionName()
            )->replaceArgument(0, array_unique($this->configuration, SORT_REGULAR));
        }
        if ($this->container->hasDefinition($this->definitionApiName())) {
            foreach ($this->configuration as $key => $config) {
                $this->configuration[$key]['enabled'] = $config['api_enabled'];

                if (array_key_exists('type', $config)) {
                    $this->configuration[$key]['type'] = $config['api_type'];
                }
            }

            $this->container->getDefinition(
                $this->definitionApiName()
            )->replaceArgument(0, array_unique($this->configuration, SORT_REGULAR));
        }

        return $this->container;
    }
public function build ( ) { if ( $ this -> container -> hasDefinition ( $ this -> definitionName ( ) ) ) { $ this -> container -> getDefinition ( $ this -> definitionName ( ) ) -> replaceArgument ( 0 , array_unique ( $ this -> configuration , SORT_REGULAR ) ) ; } if ( $ this -> container -> hasDefinition ( $ this -> definitionApiName ( ) ) ) { foreach ( $ this -> configuration as $ key => $ config ) { $ this -> configuration [ $ key ] [ 'enabled' ] = $ config [ 'api_enabled' ] ; if ( array_key_exists ( 'type' , $ config ) ) { $ this -> configuration [ $ key ] [ 'type' ] = $ config [ 'api_type' ] ; } } $ this -> container -> getDefinition ( $ this -> definitionApiName ( ) ) -> replaceArgument ( 0 , array_unique ( $ this -> configuration , SORT_REGULAR ) ) ; } return $ this -> container ; }
Entry point of routes loader builder to
inject routes inside route loader.

@return ContainerBuilder
Entry point of routes loader builder to inject routes inside route loader .