Skip to content

Conversation

@hannesvdvreken
Copy link
Contributor

Follow-up PR of #6724

Includes

  • More method documentation for new methods
  • Methods now also added to the Container contract
  • Made use of the new $container->resolvingType method to clean up ValidationServiceProvider and FormRequestServiceProvider.

@hannesvdvreken hannesvdvreken changed the title Make use of new resolvingType method [5.0] Make use of new resolvingType method Dec 24, 2014
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not use a leading slash. Please remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Done. ;-)

@hannesvdvreken
Copy link
Contributor Author

I'm thinking about rewriting the resolving and afterResolving methods to accept just a callback. If that callback's first argument is type hinted, then use that to only execute that callback when a resolved object is of that type. It removes the need for resolvingType, resolvingAny and it's after-variants.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Imports need to be sorted by length

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're unused imports even. Forgot to remove them again.

@GrahamCampbell
Copy link
Collaborator

Please send your short array syntax changes in a different pull.

@hannesvdvreken
Copy link
Contributor Author

@GrahamCampbell does this "require changes"?

@taylorotwell
Copy link
Member

Rebase?

@hannesvdvreken
Copy link
Contributor Author

@taylorotwell rebased

@GrahamCampbell
Copy link
Collaborator

👍

@hannesvdvreken
Copy link
Contributor Author

Ping

@taylorotwell
Copy link
Member

Is this needed after merging that other PR?

@hannesvdvreken
Copy link
Contributor Author

Nope

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.

3 participants