private function registerConfigurator()
    {
        $this->app->bind('CodeZero\Twitter\Twitter', function($app)
        {
            $config = $app['config']->has("twitter")
                ? $app['config']->get("twitter")
                : $app['config']->get("twitter::config");

            $configurator = new \CodeZero\Configurator\DefaultConfigurator();
            $courier = $app->make('CodeZero\Twitter\TwitterCourier');
            $authHelper = new \CodeZero\Twitter\AuthHelper();
            $urlHelper = new \CodeZero\Utilities\UrlHelper();
            $twitterFactory = new \CodeZero\Twitter\TwitterFactory();

            return new \CodeZero\Twitter\Twitter($config, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);
        });
    }
private function registerConfigurator()
    {
        $this->app->bind('CodeZero\Twitter\Twitter', function($app)
        {
            $config = $app['config']->has("twitter")
                ? $app['config']->get("twitter")
                : $app['config']->get("twitter::config");

            $configurator = new \CodeZero\Configurator\DefaultConfigurator();
            $courier = $app->make('CodeZero\Twitter\TwitterCourier');
            $authHelper = new \CodeZero\Twitter\AuthHelper();
            $urlHelper = new \CodeZero\Utilities\UrlHelper();
            $twitterFactory = new \CodeZero\Twitter\TwitterFactory();

            return new \CodeZero\Twitter\Twitter($config, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);
        });
    }
private function registerConfigurator ( ) { $ this -> app -> bind ( 'CodeZero\Twitter\Twitter' , function ( $ app ) { $ config = $ app [ 'config' ] -> has ( "twitter" ) ? $ app [ 'config' ] -> get ( "twitter" ) : $ app [ 'config' ] -> get ( "twitter::config" ) ; $ configurator = new \ CodeZero \ Configurator \ DefaultConfigurator ( ) ; $ courier = $ app -> make ( 'CodeZero\Twitter\TwitterCourier' ) ; $ authHelper = new \ CodeZero \ Twitter \ AuthHelper ( ) ; $ urlHelper = new \ CodeZero \ Utilities \ UrlHelper ( ) ; $ twitterFactory = new \ CodeZero \ Twitter \ TwitterFactory ( ) ; return new \ CodeZero \ Twitter \ Twitter ( $ config , $ configurator , $ courier , $ authHelper , $ urlHelper , $ twitterFactory ) ; } ) ; }
Register the configurator binding
Register the configurator binding