laravel/framework — pull request #4666 by alexrussell (2014-06-11 14:36:23+00:00)
Title: Allow view composers as objects

Allow view composers and creators to be passed objects that are pre-constructed rather than only a string FQCN that the container will construct (or a closure).

My use case was that I wanted to do my own DI on a view composer class (I needed to pass in a locally-instantiated class rather than one that would be resolved out of the IoC container) and the current setup wouldn't let me.