for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php /** MicroKernelInjector */
namespace Micro\Base;
use Micro\Micro;
/**
* Class KernelInjector
*
* @author Oleg Lunegov <[email protected]>
* @link https://github.com/linpax/microphp-framework
* @copyright Copyright © 2013 Oleg Lunegov
* @license /LICENSE
* @package Micro
* @subpackage Base
* @version 1.0
* @since 1.0
*/
class KernelInjector extends Injector
{
* @access public
* @return Micro
* @throws Exception
public function build()
$kernel = $this->get('kernel');
if (!($kernel instanceof Micro)) {
throw new Exception('Component `kernel` not configured');
}
return $kernel;