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

Move common method for a CapsuleManager to trait, this would reduce the ... #5071

Merged
merged 2 commits into from
Sep 10, 2014

Conversation

crynobone
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets None
License MIT
Doc PR None
  • Move common method for a CapsuleManager to trait, this would reduce the requirement to produce new CapsuleManager for other component in the future (e.g: [Proposal] De-couple mail component a bit more #5032)
  • Also remove duplicate "require-dev" component (when already explicitly declare in "require").

@driesvints
Copy link
Member

Nice job! Looks great and much more re-usable.

Could it be that you forgot to declare use CapsuleManagerTrait; on the Database Capsule Manager?

Edit: if so then tests should break imo... perhaps we're not testing this enough.

@driesvints
Copy link
Member

@GrahamCampbell he removed it from require-dev because it's already listed in require. You should read his comment ;)

@GrahamCampbell
Copy link
Member

@driesvints I see that now. The diff doesn't show that part of the file on github.

@crynobone
Copy link
Member Author

@driesvints fixed.

@GrahamCampbell
Copy link
Member

Thanks for this @crynobone. 👍

…he requirement to produce new CapsuleManager for other component in the future (e.g: laravel#5032)

Also remove duplicate "require-dev" component (when already explicitly declare in "require").

Signed-off-by: crynobone <[email protected]>
@crynobone
Copy link
Member Author

Updated to include some unit test.

@taylorotwell taylorotwell merged commit 0d4b6ee into laravel:4.2 Sep 10, 2014
@crynobone crynobone deleted the feature/capsule-trait branch April 16, 2015 13:16
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

Successfully merging this pull request may close these issues.

4 participants