Skip to content

Commit ada8e19

Browse files
committed
#809 - Use of internal API
1 parent 89ea9c2 commit ada8e19

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Routing/Loader/RestYamlCollectionLoader.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function load($file, $type = null)
9595
}
9696

9797
if ($options) {
98-
$this->addOptionsToRoutes($options, $imported);
98+
$imported->addOptions($options);
9999
}
100100

101101
$imported->addPrefix($prefix);
@@ -142,11 +142,4 @@ public function supports($resource, $type = null)
142142
'yml' === pathinfo($resource, PATHINFO_EXTENSION) &&
143143
'rest' === $type;
144144
}
145-
146-
protected function addOptionsToRoutes($options, RouteCollection $routesCollection)
147-
{
148-
foreach ($routesCollection as $route) {
149-
$route->addOptions($options);
150-
}
151-
}
152145
}

0 commit comments

Comments
 (0)