| | 1157 | ==== Routing ==== |
| | 1158 | ===== RouteCollection vs RouteCollectionBuilder ===== |
| | 1159 | {{{#!th |
| | 1160 | **[http://api.symfony.com/3.0/Symfony/Component/Routing/RouteCollection.html RouteCollection]** |
| | 1161 | }}} |
| | 1162 | {{{#!th |
| | 1163 | **[http://api.symfony.com/3.0/Symfony/Component/Routing/RouteCollectionBuilder.html RouteCollectionBuilder]** |
| | 1164 | }}} |
| | 1165 | |---------------- |
| | 1166 | || || || |
| | 1167 | {{{#!td rowspan=2 |
| | 1168 | **add**(string $name, Route $route) |
| | 1169 | }}} |
| | 1170 | {{{#!td |
| | 1171 | $this **addRoute**(Route $route, string|null $name = null) |
| | 1172 | }}} |
| | 1173 | |---------------- |
| | 1174 | {{{#!td |
| | 1175 | Route **add**(string $path, string $controller, string|null $name = null |
| | 1176 | }}} |
| | 1177 | |---------------- |
| | 1178 | {{{#!td |
| | 1179 | //Does not exist// |
| | 1180 | }}} |
| | 1181 | {{{#!td |
| | 1182 | RouteCollectionBuilder **import**(mixed $resource, string|null $prefix = '/', string $type = null) |
| | 1183 | }}} |
| | 1184 | |---------------- |