Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark the trait as internal
  • Loading branch information
dunglas committed Jan 26, 2016
commit 57cbfa365c570f18db69661e0fe6a63648782069
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/**
* Resolves a class name.
*
* @internal
*
* @author Kévin Dunglas <[email protected]>
*/
trait ClassResolverTrait
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making this trait internal?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be useful for a userland MetadataFactory (like a Doctrine Cache one) what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case they could use the ClassUtils of doctrine/common.
IMO the behaviour of this trait is easily reproductible and should not be accessible publicly (at least in a trait which is not related directly to class management).

Expand Down