Library/Compiler.php
private function checkKernelFiles()
    {
        $kernelPath = 'ext'.\DIRECTORY_SEPARATOR.'kernel';

        if (!file_exists($kernelPath)) {
            if (!mkdir($kernelPath, 0775, true)) {
                throw new Exception("Cannot create kernel directory: {$kernelPath}");
            }
        }

        $kernelPath = realpath($kernelPath);
        $sourceKernelPath = $this->backend->getInternalKernelPath();

        $configured = $this->recursiveProcess(
            $sourceKernelPath,
            $kernelPath,
            '@.*\.[ch]$@',
            [$this, 'checkKernelFile']
        );

        if (!$configured) {
            $this->logger->info('Cleaning old kernel files...');
            $this->recursiveDeletePath($kernelPath, '@^.*\.[lcho]$@');

            @mkdir($kernelPath);

            $this->logger->info('Copying new kernel files...');
            $this->recursiveProcess($sourceKernelPath, $kernelPath, '@^.*\.[ch]$@');
        }

        return !$configured;
    }
private function checkKernelFiles()
    {
        $kernelPath = 'ext'.\DIRECTORY_SEPARATOR.'kernel';

        if (!file_exists($kernelPath)) {
            if (!mkdir($kernelPath, 0775, true)) {
                throw new Exception("Cannot create kernel directory: {$kernelPath}");
            }
        }

        $kernelPath = realpath($kernelPath);
        $sourceKernelPath = $this->backend->getInternalKernelPath();

        $configured = $this->recursiveProcess(
            $sourceKernelPath,
            $kernelPath,
            '@.*\.[ch]$@',
            [$this, 'checkKernelFile']
        );

        if (!$configured) {
            $this->logger->info('Cleaning old kernel files...');
            $this->recursiveDeletePath($kernelPath, '@^.*\.[lcho]$@');

            @mkdir($kernelPath);

            $this->logger->info('Copying new kernel files...');
            $this->recursiveProcess($sourceKernelPath, $kernelPath, '@^.*\.[ch]$@');
        }

        return !$configured;
    }
private function checkKernelFiles ( ) { $ kernelPath = 'ext' . \ DIRECTORY_SEPARATOR . 'kernel' ; if ( ! file_exists ( $ kernelPath ) ) { if ( ! mkdir ( $ kernelPath , 0775 , true ) ) { throw new Exception ( "Cannot create kernel directory: {$kernelPath}" ) ; } } $ kernelPath = realpath ( $ kernelPath ) ; $ sourceKernelPath = $ this -> backend -> getInternalKernelPath ( ) ; $ configured = $ this -> recursiveProcess ( $ sourceKernelPath , $ kernelPath , '@.*\.[ch]$@' , [ $ this , 'checkKernelFile' ] ) ; if ( ! $ configured ) { $ this -> logger -> info ( 'Cleaning old kernel files...' ) ; $ this -> recursiveDeletePath ( $ kernelPath , '@^.*\.[lcho]$@' ) ; @ mkdir ( $ kernelPath ) ; $ this -> logger -> info ( 'Copying new kernel files...' ) ; $ this -> recursiveProcess ( $ sourceKernelPath , $ kernelPath , '@^.*\.[ch]$@' ) ; } return ! $ configured ; }
Checks which files in the base kernel must be copied.

@throws Exception

@return bool
Checks which files in the base kernel must be copied .