src/Routing/SlimRouteGenerator.php
protected function parentRoutesFor(ResourceConfiguration $config)
    {
        if ($config->getParent()) {
            $parentConfig = $this->configuration->resourceConfigurationFor($config->getParent());

            return $this->parentRoutesFor($parentConfig) . "/{$config->getParent()}/:{$config->getParent()}_id";
        }
    }
protected function parentRoutesFor(ResourceConfiguration $config)
    {
        if ($config->getParent()) {
            $parentConfig = $this->configuration->resourceConfigurationFor($config->getParent());

            return $this->parentRoutesFor($parentConfig) . "/{$config->getParent()}/:{$config->getParent()}_id";
        }
    }
protected function parentRoutesFor ( ResourceConfiguration $ config ) { if ( $ config -> getParent ( ) ) { $ parentConfig = $ this -> configuration -> resourceConfigurationFor ( $ config -> getParent ( ) ) ; return $ this -> parentRoutesFor ( $ parentConfig ) . "/{$config->getParent()}/:{$config->getParent()}_id" ; } }
Gets the parents routes for a given child resource.

@param ResourceConfiguration $config
@return string
Gets the parents routes for a given child resource .