Skip to content

Instantly share code, notes, and snippets.

@dawehner
Created May 12, 2017 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawehner/55a0d90d8fb0a256459bc906bb1abef2 to your computer and use it in GitHub Desktop.
Save dawehner/55a0d90d8fb0a256459bc906bb1abef2 to your computer and use it in GitHub Desktop.
class ContainerAwareLazyRouteFilter extends LazyRouteFilter {
use ContainerAwareTrait;
protected function createInstance($id) {
return $this->container->get($id);
}
}
abstract class LazyRouteFilter {
protected function createInstance($id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment