for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php /** MicroDispatcherInjector */
namespace Micro\Base;
/**
* Class DispatcherInjector
*
* @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 DispatcherInjector extends Injector
{
* @return IDispatcher
* @throws Exception
public function get()
$dispatcher = parent::get('dispatcher');
if (!($dispatcher instanceof IDispatcher)) {
throw new Exception('Component `dispatcher` not configured');
}
return $dispatcher;