schmittjoh / object-routing

Library for generating routes based on objects.
http://jmsyst.com/libs/object-routing
Apache License 2.0
56 stars 7 forks source link

having different routes in class cascade #3

Open digitalkaoz opened 9 years ago

digitalkaoz commented 9 years ago

imagine this:

<?php

/** @ObjectRoute(type="view", "name" => "foo_route") */
class Foo{}

/** @ObjectRoute(type="view", "name" => "bar_route") */
class Bar extends Foo{}

if i resolve the ObjectRoute of objet_url('view', new Bar() i always get the foo_route... The MetaFactory seems to merge/override it :(

mpdude commented 4 years ago

https://github.com/webfactory/object-routing/pull/1 probably fixes this.