src/Neutrino/Foundation/Kernelize.php
public function bootstrap(Config $config)
    {
        /** @var \Phalcon\Application $this */
        Handler::setWriters($this->errorHandlerLvl);

        $diClass = $this->dependencyInjection;

        if (empty($diClass)) {
            $di = Di::getDefault();
        } else {
            Di::reset();

            /** @var Di $di */
            $di = new $diClass;

            // Global Register Di
            Di::setDefault($di);
        }

        // Register Di on Application
        $this->setDI($di);

        // Register Default Shared instance
        $di->setShared(Services::APP, $this);
        $di->setShared(Services::CONFIG, $config);

        $emClass = $this->eventsManagerClass;

        if (!empty($emClass)) {
            $em = new $emClass;

            $this->setEventsManager($em);

            $di->setInternalEventsManager($em);

            $di->setShared(Services::EVENTS_MANAGER, $em);
        }

        // Register Di on Facade
        Facade::setDependencyInjection($di);
    }
public function bootstrap(Config $config)
    {
        /** @var \Phalcon\Application $this */
        Handler::setWriters($this->errorHandlerLvl);

        $diClass = $this->dependencyInjection;

        if (empty($diClass)) {
            $di = Di::getDefault();
        } else {
            Di::reset();

            /** @var Di $di */
            $di = new $diClass;

            // Global Register Di
            Di::setDefault($di);
        }

        // Register Di on Application
        $this->setDI($di);

        // Register Default Shared instance
        $di->setShared(Services::APP, $this);
        $di->setShared(Services::CONFIG, $config);

        $emClass = $this->eventsManagerClass;

        if (!empty($emClass)) {
            $em = new $emClass;

            $this->setEventsManager($em);

            $di->setInternalEventsManager($em);

            $di->setShared(Services::EVENTS_MANAGER, $em);
        }

        // Register Di on Facade
        Facade::setDependencyInjection($di);
    }
Application starter

@param \Phalcon\Config $config

@return void