src/Behat/Behat/HelperContainer/BuiltInServiceContainer.php
private function getAndValidateServiceSchema($id)
    {
        $schema = $this->schema[$id];

        if (null === $schema) {
            $schema = array('class' => $id);
        }

        if (is_string($schema)) {
            $schema = array('class' => $schema);
        }

        $schema['class'] = $this->getAndValidateClass($id, $schema);
        $schema['arguments'] = $this->getAndValidateArguments($schema);

        return $schema;
    }
private function getAndValidateServiceSchema($id)
    {
        $schema = $this->schema[$id];

        if (null === $schema) {
            $schema = array('class' => $id);
        }

        if (is_string($schema)) {
            $schema = array('class' => $schema);
        }

        $schema['class'] = $this->getAndValidateClass($id, $schema);
        $schema['arguments'] = $this->getAndValidateArguments($schema);

        return $schema;
    }
private function getAndValidateServiceSchema ( $ id ) { $ schema = $ this -> schema [ $ id ] ; if ( null === $ schema ) { $ schema = array ( 'class' => $ id ) ; } if ( is_string ( $ schema ) ) { $ schema = array ( 'class' => $ schema ) ; } $ schema [ 'class' ] = $ this -> getAndValidateClass ( $ id , $ schema ) ; $ schema [ 'arguments' ] = $ this -> getAndValidateArguments ( $ schema ) ; return $ schema ; }
Gets and validates a service configuration for a service with given ID.

@param string $id

@throws WrongServicesConfigurationException

@return array|string
Gets and validates a service configuration for a service with given ID .