private function prepareCustomBootstrapAndAutoloading(string $bootstrapFile)
    {
        /** @var Finder $autoloadFinder */
        $autoloadFinder = $this->objectManager->get(Finder::class);
        $projectAutoloaderPath = $autoloadFinder->find(getcwd());
        if ($projectAutoloaderPath !== '') {
            require_once $projectAutoloaderPath;
        }

        // The variable will be exported to the bootstrap file
        $eventDispatcher = $this->eventDispatcher;
        if ($bootstrapFile) {
            require_once $bootstrapFile;
        }
        unset($eventDispatcher);
    }
private function prepareCustomBootstrapAndAutoloading(string $bootstrapFile)
    {
        /** @var Finder $autoloadFinder */
        $autoloadFinder = $this->objectManager->get(Finder::class);
        $projectAutoloaderPath = $autoloadFinder->find(getcwd());
        if ($projectAutoloaderPath !== '') {
            require_once $projectAutoloaderPath;
        }

        // The variable will be exported to the bootstrap file
        $eventDispatcher = $this->eventDispatcher;
        if ($bootstrapFile) {
            require_once $bootstrapFile;
        }
        unset($eventDispatcher);
    }
private function prepareCustomBootstrapAndAutoloading ( string $ bootstrapFile ) { /** @var Finder $autoloadFinder */ $ autoloadFinder = $ this -> objectManager -> get ( Finder :: class ) ; $ projectAutoloaderPath = $ autoloadFinder -> find ( getcwd ( ) ) ; if ( $ projectAutoloaderPath !== '' ) { require_once $ projectAutoloaderPath ; } // The variable will be exported to the bootstrap file $ eventDispatcher = $ this -> eventDispatcher ; if ( $ bootstrapFile ) { require_once $ bootstrapFile ; } unset ( $ eventDispatcher ) ; }
Include the custom bootstrap file

@param string $bootstrapFile
Include the custom bootstrap file