src/Zicht/Tool/Container/Container.php
public function lookup($context, $path, $require = false)
    {
        if (empty($path)) {
            throw new \InvalidArgumentException("Passed lookup path is empty.");
        }
        if (empty($context)) {
            throw new \InvalidArgumentException("Specified context is empty while resolving path " . json_encode($path));
        }
        return PropertyAccessor::getByPath($context, $this->path($path), $require);
    }
public function lookup($context, $path, $require = false)
    {
        if (empty($path)) {
            throw new \InvalidArgumentException("Passed lookup path is empty.");
        }
        if (empty($context)) {
            throw new \InvalidArgumentException("Specified context is empty while resolving path " . json_encode($path));
        }
        return PropertyAccessor::getByPath($context, $this->path($path), $require);
    }
public function lookup ( $ context , $ path , $ require = false ) { if ( empty ( $ path ) ) { throw new \ InvalidArgumentException ( "Passed lookup path is empty." ) ; } if ( empty ( $ context ) ) { throw new \ InvalidArgumentException ( "Specified context is empty while resolving path " . json_encode ( $ path ) ) ; } return PropertyAccessor :: getByPath ( $ context , $ this -> path ( $ path ) , $ require ) ; }
Looks up a path in the specified context

@param array $context
@param array $path
@param bool $require
@return string

@throws \RuntimeException
@throws \InvalidArgumentException
Looks up a path in the specified context