public function register() {

        // Bind the returned class to the namespace 'Ooglee\Domain\Contracts\IHashingService'
        $this->app->singleton('Ooglee\Domain\Contracts\IHashingService', function($app)
        {
            //$hasher = $this->app['config']['ioc.app.hasher'];
            $hasher = \Config::get('ooglee::ioc.app.hasher');
            //return new HashingService(new HasherExample());
            return new HashingService(new $hasher);
        });
    }
public function register() {

        // Bind the returned class to the namespace 'Ooglee\Domain\Contracts\IHashingService'
        $this->app->singleton('Ooglee\Domain\Contracts\IHashingService', function($app)
        {
            //$hasher = $this->app['config']['ioc.app.hasher'];
            $hasher = \Config::get('ooglee::ioc.app.hasher');
            //return new HashingService(new HasherExample());
            return new HashingService(new $hasher);
        });
    }
public function register ( ) { // Bind the returned class to the namespace 'Ooglee\Domain\Contracts\IHashingService'
 $ this -> app -> singleton ( 'Ooglee\Domain\Contracts\IHashingService' , function ( $ app ) { //$hasher = $this->app['config']['ioc.app.hasher'];
 $ hasher = \ Config :: get ( 'ooglee::ioc.app.hasher' ) ; //return new HashingService(new HasherExample());
 return new HashingService ( new $ hasher ) ; } ) ; }
Registers the service in the IoC Container
Registers the service in the IoC Container