src/Routing/Matcher/ArrayMatcher.php 1 location
|
@@ 150-156 (lines=7) @@
|
| 147 |
|
/** |
| 148 |
|
* @param array $target |
| 149 |
|
*/ |
| 150 |
|
public function setTarget($target = []){ |
| 151 |
|
$index = isset($this->request['collection_index']) ? $this->request['collection_index'] : 0; |
| 152 |
|
$this->router->route->setDetail($this->request); |
| 153 |
|
$this->router->route->setTarget($target); |
| 154 |
|
$this->router->route->addTarget('block', $this->router->collection->getRoutes('block_'.$index)); |
| 155 |
|
$this->router->route->addTarget('view_dir', $this->router->collection->getRoutes('view_dir_'.$index)); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* |
src/Routing/Matcher/UriMatcher.php 1 location
|
@@ 95-101 (lines=7) @@
|
| 92 |
|
/** |
| 93 |
|
* @param array $target |
| 94 |
|
*/ |
| 95 |
|
public function setTarget($target = []){ |
| 96 |
|
$index = isset($this->request['collection_index']) ? $this->request['collection_index'] : 0; |
| 97 |
|
$this->router->route->setDetail($this->request); |
| 98 |
|
$this->router->route->setTarget($target); |
| 99 |
|
$this->router->route->addTarget('block', $this->router->collection->getRoutes('block_'.$index)); |
| 100 |
|
$this->router->route->addTarget('view_dir', $this->router->collection->getRoutes('view_dir_'.$index)); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* @return array|bool |