public function bootstrap()
    {
        $this->tweak();

        $serviceLocator = new ServiceLocator();
        $serviceLocator->registerArray($this->getServices());

        // Constant that tells that the framework is launched
        define('KRYSTAL', true);

        return $serviceLocator;
    }
public function bootstrap()
    {
        $this->tweak();

        $serviceLocator = new ServiceLocator();
        $serviceLocator->registerArray($this->getServices());

        // Constant that tells that the framework is launched
        define('KRYSTAL', true);

        return $serviceLocator;
    }
public function bootstrap ( ) { $ this -> tweak ( ) ; $ serviceLocator = new ServiceLocator ( ) ; $ serviceLocator -> registerArray ( $ this -> getServices ( ) ) ; // Constant that tells that the framework is launched define ( 'KRYSTAL' , true ) ; return $ serviceLocator ; }
Bootstrap the application. Prepare service location and module manager
But do not launch the router and controllers
This can be useful when you don't want to launch the application,
but at the same time you want to get some service from a module

@return \Krystal\InstanceManager\ServiceLocator
Bootstrap the application . Prepare service location and module manager But do not launch the router and controllers This can be useful when you don t want to launch the application but at the same time you want to get some service from a module