private function parseDefinitions($content)
    {
        if (!isset($content['services'])) {
            return [];
        }

        if (!is_array($content['services'])) {
            throw new InvalidArgumentException(sprintf('The "services" key should contain an array in %s. Check your YAML syntax.', $this->fileName));
        }

        $definitions = [];

        foreach ($content['services'] as $id => $service) {
            $definitions[$id] = $this->parseDefinition($id, $service);
        }

        return $definitions;
    }
private function parseDefinitions($content)
    {
        if (!isset($content['services'])) {
            return [];
        }

        if (!is_array($content['services'])) {
            throw new InvalidArgumentException(sprintf('The "services" key should contain an array in %s. Check your YAML syntax.', $this->fileName));
        }

        $definitions = [];

        foreach ($content['services'] as $id => $service) {
            $definitions[$id] = $this->parseDefinition($id, $service);
        }

        return $definitions;
    }
private function parseDefinitions ( $ content ) { if ( ! isset ( $ content [ 'services' ] ) ) { return [ ] ; } if ( ! is_array ( $ content [ 'services' ] ) ) { throw new InvalidArgumentException ( sprintf ( 'The "services" key should contain an array in %s. Check your YAML syntax.' , $ this -> fileName ) ) ; } $ definitions = [ ] ; foreach ( $ content [ 'services' ] as $ id => $ service ) { $ definitions [ $ id ] = $ this -> parseDefinition ( $ id , $ service ) ; } return $ definitions ; }
Parses definitions.

@param array $content

@return DefinitionInterface[]
Parses definitions .