Skip to content

2.3

Choose a tag to compare

@nadar nadar released this 18 Aug 09:11
· 30 commits to main since this release
18325f3

Generated against OpenAPI spec 2.30 (was 2.28).

routes is a plain array again

The Routes model class introduced in 2.2 has been removed. EntityInterface::getRoutes()
and EntityinterfaceInner::getRoutes() return array<string,mixed>|null again, so all
route keys are accessible and no longer swallowed by the model.

// 2.2
$entity->getRoutes()->getEmpty();

// 2.3
$routes = $entity->getRoutes();
$routes['_empty']; // bool: true when no route could be resolved
$routes['detail']; // string: "/foo-bar"

If you type-hinted against \Flyo\Model\Routes, replace it with array.

What's Changed

  • Remove Routes model class and revert to plain array by @nadar in #2

Full Changelog: 2.2...2.3