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

More documentation requested #1

Closed
olegstepura opened this issue Oct 21, 2011 · 6 comments
Closed

More documentation requested #1

olegstepura opened this issue Oct 21, 2011 · 6 comments

Comments

@olegstepura
Copy link

Hi!

From documentation it's not so clear how this library can be used. Can you please update the readme with more information on what this library is targeted to and some more verbose usage examples maybe.

As far as I can see it requires external annotation/xml/yaml/whatsoever reader adapter to get the metadata and those readers must implement some interface which make it necessary to implement it again for each use case but not use the existing Doctrine readers for example.

Does the lib provide the ability to use extra annotations which Doctrine Common's reader does not allow?
Does it cache the metadata information by default and what configuration it requires to make caching work.

It would be nice to have the annotated class as an example together with simple howto work with with it and description on the abstraction layers that this lib provides.

Thanks!

@schmittjoh
Copy link
Owner

Hey,

I probably can't spend as much time on this as it deserves, but I can give you some pointers.

The aim of this library is to provide tools to make the management of metadata easier. Metadata can come from many different sources, including but not limited to XML, YML, PHP, and annotations.

You can have a look at the following bundles (in the Metadata sub-folder) where it is used:

  • JMSSecurityExtraBundle
  • JMSSerializerBundle
  • JMSDiExtraBundle

@olegstepura
Copy link
Author

Too bad. A little bit more documentation could make this lib much more useful by others.

Is this the place to dig: https://github.com/schmittjoh/JMSSecurityExtraBundle/blob/master/Security/Authorization/Interception/MethodSecurityInterceptor.php ?

@olegstepura
Copy link
Author

And the reason I was asking is that I faced the problem of working with Doctrine Common lib on Annotations and had to implement my own Metadata manager and metadata class. Since I learned this lib is used for the same purpose I thought I could somehow generalize my code. But I faced that it's not obvious on how to use it.

@schmittjoh
Copy link
Owner

That shows a place where it the metadata is retrieved, but if you are looking for drivers, and how the metadata is built, then you can look at these places:

@olegstepura
Copy link
Author

With this I still cannot find a big picture. Even reading the tests do not help since only units are tested (it's unit testing ;)

schmittjoh added a commit that referenced this issue Dec 12, 2014
schmittjoh added a commit that referenced this issue Dec 12, 2014
Testing Scrutinizer Integration
@Arkemlar
Copy link

+1 for requesting more documentation. It is not intuitive/obvious how to use the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants