src/Mandango/Mondator/Container.php
public function getDefinition($name)
    {
        if (!$this->hasDefinition($name)) {
            throw new \InvalidArgumentException(sprintf('The definition "%s" does not exists.', $name));
        }

        return $this->definitions[$name];
    }
public function getDefinition($name)
    {
        if (!$this->hasDefinition($name)) {
            throw new \InvalidArgumentException(sprintf('The definition "%s" does not exists.', $name));
        }

        return $this->definitions[$name];
    }
Returns a definition by name.

@param string $name The definition name.

@return Mandango\Mondator\Definition The definition.

@throws \InvalidArgumentException If the definition does not exists.

@api