Skip to content
Permalink
Browse files

Remove container from App::setCallableResolver

  • Loading branch information...
codeguy committed Dec 10, 2016
1 parent 767a9c9 commit f9f4953aaf960762e91eeefa089c2f5ed7301d98
Showing with 1 addition and 13 deletions.
  1. +1 −13 Slim/App.php
@@ -152,19 +152,7 @@ public function setCallableResolver(CallableResolverInterface $resolver)
public function getCallableResolver()
{
if (! $this->callableResolver instanceof CallableResolverInterface) {
$resolver = null;
// Fetch resolver from container if container is set
if ($this->container instanceof ContainerInterface) {
$resolver = $this->container->get('callableResolver');
}
// If resolver is invalid, use default
if (! $resolver instanceof CallableResolverInterface) {
$resolver = new CallableResolver($this->container);
}
$this->callableResolver = $resolver;
$this->callableResolver = new CallableResolver($this->container);
}
return $this->callableResolver;

0 comments on commit f9f4953

Please sign in to comment.
You can’t perform that action at this time.