Last active
April 19, 2016 23:02
-
-
Save tiagosampaio/9c815f1fc84b309cdf7b73280f62a321 to your computer and use it in GitHub Desktop.
Magento 2 - Request Flow / Bootstrap - Magento\Framework\App\Bootstrap::run()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
... | |
/** | |
* Runs an application | |
* | |
* @param \Magento\Framework\AppInterface $application | |
* @return void | |
*/ | |
public function run(AppInterface $application) | |
{ | |
try { | |
try { | |
\Magento\Framework\Profiler::start('magento'); | |
$this->initErrorHandler(); | |
$this->initObjectManager(); | |
$this->assertMaintenance(); | |
$this->assertInstalled(); | |
$response = $application->launch(); | |
$response->sendResponse(); | |
\Magento\Framework\Profiler::stop('magento'); | |
} catch (\Exception $e) { | |
\Magento\Framework\Profiler::stop('magento'); | |
if (!$application->catchException($this, $e)) { | |
throw $e; | |
} | |
} | |
} catch (\Exception $e) { | |
$this->terminate($e); | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment