An open API service indexing awesome lists of open source software.

https://github.com/loremipsum/route-generator-bundle

Symfony bundle to create routes to resources.
https://github.com/loremipsum/route-generator-bundle

Last synced: 12 months ago
JSON representation

Symfony bundle to create routes to resources.

Awesome Lists containing this project

README

          

# RouteGenerator bundle

Symfony bundle to create routes to resources.

## Example route handler

```php
router = $router;
}

public function handle($value, $view = null, $context = [])
{
if ($value instanceof User) {
return $this->router->generate('userView', array_merge(['user' => $value->getId()], $context));
}
return null;
}
}
```

## Example usage

```
{% if is routable %}
{{ }}
{% else %}
{{ }}
{% endif %}
```