SlimServices\ServiceManager::bind PHP Method

bind() public method

Overload the bind method so the services are added to the Slim DI container as well as Illuminate container
public bind ( $abstract, $concrete = null, $shared = false )
    public function bind($abstract, $concrete = null, $shared = false)
    {
        parent::bind($abstract, $concrete, $shared);
        $service_manager = $this;
        $this->app->{$abstract} = function () use($service_manager, $abstract) {
            return $service_manager->make($abstract);
        };
    }