|
@@ -20,14 +20,29 @@ use Symfony\Component\Routing\Route;
|
|
*/
|
|
*/
|
|
class RouteCollection
|
|
class RouteCollection
|
|
{
|
|
{
|
|
|
|
+ /**
|
|
|
|
+ * @var Route[]
|
|
|
|
+ */
|
|
protected $elements = array();
|
|
protected $elements = array();
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @var string
|
|
|
|
+ */
|
|
protected $baseCodeRoute;
|
|
protected $baseCodeRoute;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @var string
|
|
|
|
+ */
|
|
protected $baseRouteName;
|
|
protected $baseRouteName;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @var string
|
|
|
|
+ */
|
|
protected $baseControllerName;
|
|
protected $baseControllerName;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * @var string
|
|
|
|
+ */
|
|
protected $baseRoutePattern;
|
|
protected $baseRoutePattern;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -100,7 +115,7 @@ class RouteCollection
|
|
/**
|
|
/**
|
|
* @param RouteCollection $collection
|
|
* @param RouteCollection $collection
|
|
*
|
|
*
|
|
- * @return \Sonata\AdminBundle\Route\RouteCollection
|
|
|
|
|
|
+ * @return RouteCollection
|
|
*/
|
|
*/
|
|
public function addCollection(RouteCollection $collection)
|
|
public function addCollection(RouteCollection $collection)
|
|
{
|
|
{
|
|
@@ -126,7 +141,7 @@ class RouteCollection
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * @return array
|
|
|
|
|
|
+ * @return Route[]
|
|
*/
|
|
*/
|
|
public function getElements()
|
|
public function getElements()
|
|
{
|
|
{
|
|
@@ -170,7 +185,7 @@ class RouteCollection
|
|
/**
|
|
/**
|
|
* @param string $name
|
|
* @param string $name
|
|
*
|
|
*
|
|
- * @return \Sonata\AdminBundle\Route\RouteCollection
|
|
|
|
|
|
+ * @return RouteCollection
|
|
*/
|
|
*/
|
|
public function remove($name)
|
|
public function remove($name)
|
|
{
|
|
{
|
|
@@ -184,7 +199,7 @@ class RouteCollection
|
|
*
|
|
*
|
|
* @param array $routeList
|
|
* @param array $routeList
|
|
*
|
|
*
|
|
- * @return \Sonata\AdminBundle\Route\RouteCollection
|
|
|
|
|
|
+ * @return RouteCollection
|
|
*/
|
|
*/
|
|
public function clearExcept(array $routeList)
|
|
public function clearExcept(array $routeList)
|
|
{
|
|
{
|
|
@@ -206,7 +221,7 @@ class RouteCollection
|
|
/**
|
|
/**
|
|
* Remove all routes.
|
|
* Remove all routes.
|
|
*
|
|
*
|
|
- * @return \Sonata\AdminBundle\Route\RouteCollection
|
|
|
|
|
|
+ * @return RouteCollection
|
|
*/
|
|
*/
|
|
public function clear()
|
|
public function clear()
|
|
{
|
|
{
|