Skip to content

Instantly share code, notes, and snippets.

@tiagosampaio
Last active April 19, 2016 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagosampaio/9c815f1fc84b309cdf7b73280f62a321 to your computer and use it in GitHub Desktop.
Save tiagosampaio/9c815f1fc84b309cdf7b73280f62a321 to your computer and use it in GitHub Desktop.
Magento 2 - Request Flow / Bootstrap - Magento\Framework\App\Bootstrap::run()
<?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