protected function addRoutes(ControllerCollection $c)
{
$routes = $this->getConfigurationRoutes();
if (!is_array($routes)) {
throw new \InvalidArgumentException('getConfigurationRoutes return an array');
}
foreach ($routes as $name => $config) {
$this->addRoute($c, $name, $config);
}
}