/**
* @see \Zend\Mvc\Router\SimpleRouteStack::addRoute()
*
- * @param string $name
- * @param mixed $route
+ * @param string $name
+ * @param mixed $route
*/
public function addRoute ($name, $route) {
$this->router->addRoute($name, $route);
/**
* @see \Zend\Mvc\Router\SimpleRouteStack::addRoutes()
*
- * @param array|Traversable $routes
+ * @param array|Traversable $routes
*/
public function addRoutes ($routes) {
$this->router->addRoutes($routes);
}
- /**
- * Get the added routes
- *
- * @return Traversable list of all routes
- */
+ /**
+ * Get the added routes
+ *
+ * @return Traversable list of all routes
+ */
public function getRoutes() {
return $this->router->getRoutes();
}
<?php
namespace dns\system\route;
-use Zend\Mvc\Router\Http\Segment as SegmentBase;
+use Zend\Mvc\Router\Exception\RuntimeException;
use Zend\Mvc\Router\Http\RouteMatch;
+use Zend\Mvc\Router\Http\Segment as SegmentBase;
use Zend\Stdlib\RequestInterface as Request;
class Segment extends SegmentBase {
if ($this->translationKeys) {
if (!isset($options['translator']) || !$options['translator'] instanceof Translator) {
- throw new Exception\RuntimeException('No translator provided');
+ throw new RuntimeException('No translator provided');
}
$translator = $options['translator'];