src/ContainerNamespace.php
public function parse(string $containerFilePath)
    {
        // create a lexer from the given file
        $lexer = new ContainerLexer($this->getCodeFromFile($containerFilePath));

        // parse the file
        $parser = new ScopeParser($lexer->tokens());

        // interpret the parsed node
        $interpreter = new ContainerInterpreter($this);
        $interpreter->handleScope($parser->parse());
    }
public function parse(string $containerFilePath)
    {
        // create a lexer from the given file
        $lexer = new ContainerLexer($this->getCodeFromFile($containerFilePath));

        // parse the file
        $parser = new ScopeParser($lexer->tokens());

        // interpret the parsed node
        $interpreter = new ContainerInterpreter($this);
        $interpreter->handleScope($parser->parse());
    }
Parse the given container file with the current namespace

@param string        $containerFilePath The path to a container file.