Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations from superclass #12

Closed
wdalmut opened this issue Feb 24, 2015 · 2 comments
Closed

Annotations from superclass #12

wdalmut opened this issue Feb 24, 2015 · 2 comments

Comments

@wdalmut
Copy link
Member

wdalmut commented Feb 24, 2015

Actually the framework never reads annotations from a superclass

<?php
/**
 * @Before(targetClass="HttpAuth", targetMethod="basic")
 */
class AuthController { ... }
<?php
class MyController extends AuthController { ... }
@wdalmut
Copy link
Member Author

wdalmut commented Feb 24, 2015

Maybe interfaces?

<?php
/**
 * @Before(targetClass="HttpAuth", targetMethod="basic")
 */
interface Authenticable {}

/**
 * @Before(targetClass="Serializer", targetMethod="toJson")
 */
interface Serializable {}

interface StandardController extends Authenticable, Serializable {}

class MyController implements StandardController
{
...
}

@wdalmut
Copy link
Member Author

wdalmut commented Jul 15, 2017

Skip any annotation from Super classes and interfaces

@wdalmut wdalmut closed this as completed Jul 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant