Library/Compiler.php
private function preCompile($filePath)
    {
        if (!$this->parserManager->isAvailable()) {
            throw new IllegalStateException($this->parserManager->requirements());
        }

        if (preg_match('#\.zep$#', $filePath)) {
            $className = str_replace(\DIRECTORY_SEPARATOR, '\\', $filePath);
            $className = preg_replace('#.zep$#', '', $className);

            $className = implode('\\', array_map('ucfirst', explode('\\', $className)));

            $compilerFile = $this->compilerFileFactory->create($className, $filePath);
            $compilerFile->preCompile($this);

            $this->files[$className] = $compilerFile;
            $this->definitions[$className] = $compilerFile->getClassDefinition();
        }
    }
private function preCompile($filePath)
    {
        if (!$this->parserManager->isAvailable()) {
            throw new IllegalStateException($this->parserManager->requirements());
        }

        if (preg_match('#\.zep$#', $filePath)) {
            $className = str_replace(\DIRECTORY_SEPARATOR, '\\', $filePath);
            $className = preg_replace('#.zep$#', '', $className);

            $className = implode('\\', array_map('ucfirst', explode('\\', $className)));

            $compilerFile = $this->compilerFileFactory->create($className, $filePath);
            $compilerFile->preCompile($this);

            $this->files[$className] = $compilerFile;
            $this->definitions[$className] = $compilerFile->getClassDefinition();
        }
    }
private function preCompile ( $ filePath ) { if ( ! $ this -> parserManager -> isAvailable ( ) ) { throw new IllegalStateException ( $ this -> parserManager -> requirements ( ) ) ; } if ( preg_match ( '#\.zep$#' , $ filePath ) ) { $ className = str_replace ( \ DIRECTORY_SEPARATOR , '\\' , $ filePath ) ; $ className = preg_replace ( '#.zep$#' , '' , $ className ) ; $ className = implode ( '\\' , array_map ( 'ucfirst' , explode ( '\\' , $ className ) ) ) ; $ compilerFile = $ this -> compilerFileFactory -> create ( $ className , $ filePath ) ; $ compilerFile -> preCompile ( $ this ) ; $ this -> files [ $ className ] = $ compilerFile ; $ this -> definitions [ $ className ] = $ compilerFile -> getClassDefinition ( ) ; } }
Pre-compiles classes creating a CompilerFile definition.

@param string $filePath

@throws IllegalStateException
Pre - compiles classes creating a CompilerFile definition .