Пример #1
0
	/**
	 * Adds the router.
	 * @param  mixed
	 * @param  IRouter
	 * @return void
	 */
	public function offsetSet($index, $route)
	{
		if (!($route instanceof IRouter)) {
			throw new \InvalidArgumentException("Argument must be IRouter descendant.");
		}
		parent::offsetSet($index, $route);
	}
Пример #2
0
 function offsetSet($index, $route)
 {
     if (!$route instanceof Nette\Application\IRouter) {
         throw new Nette\InvalidArgumentException("Argument must be IRouter descendant.");
     }
     parent::offsetSet($index, $route);
 }