src/Stevemo/Cpanel/CpanelServiceProvider.php
public function registerUser()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\User\Repo\CpanelUserInterface', function($app)
        {
            return new UserRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\User\Form\UserFormInterface', function($app)
        {
            return new UserForm(
                new UserValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\User\Repo\CpanelUserInterface')
            );
        });
    }
public function registerUser()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\User\Repo\CpanelUserInterface', function($app)
        {
            return new UserRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\User\Form\UserFormInterface', function($app)
        {
            return new UserForm(
                new UserValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\User\Repo\CpanelUserInterface')
            );
        });
    }
public function registerUser ( ) { $ app = $ this -> app ; $ app -> bind ( 'Stevemo\Cpanel\User\Repo\CpanelUserInterface' , function ( $ app ) { return new UserRepository ( $ app [ 'sentry' ] , $ app [ 'events' ] ) ; } ) ; $ app -> bind ( 'Stevemo\Cpanel\User\Form\UserFormInterface' , function ( $ app ) { return new UserForm ( new UserValidator ( $ app [ 'validator' ] , new MessageBag ) , $ app -> make ( 'Stevemo\Cpanel\User\Repo\CpanelUserInterface' ) ) ; } ) ; }
Register User binding

@author Steve Montambeault
@link   http://stevemo.ca
Register User binding