Register a cost center interface instance.

@return void
770154
protected function registerCostCenterInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\Accounting\Repositories\CostCenter\CostCenterInterface', function($app)
		{
			$AuthenticationManager = $app->make('App\Kwaai\Security\Services\AuthenticationManagement\AuthenticationManagementInterface');

			return new \Mgallegos\DecimaAccounting\Accounting\Repositories\CostCenter\EloquentCostCenter(new CostCenter(), $AuthenticationManager->getCurrentUserOrganizationConnection());
		});
	}
1349389
protected function registerBaseServices()
    {
        $widget = $this->app->make('antares.widget');
        $this->app->instance('antares.platform.menu', $widget->make('menu.antares'));
        $this->app->instance('antares.platform.acl', $this->app->make('antares.acl')->make('antares'));
        $this->app->instance('app.menu', $widget->make('menu.app'));
    }
1092143
public function register()
    {
        $container = $this->getContainer();
        $config    = $container->get('config');

        $container->share(HandlerStack::class, function () {
            return HandlerStack::create();
        });

        // If access token was provided, then instantiate and add to middleware
        if ($config->has('access_token')
            && $config->get('access_token') !== null
        ) {

            // Convert the JSON serialized token into an `AccessToken` instance.
            $config->set(
                'access_token',
                new AccessToken(json_decode($config->get('access_token'), true))
            );
        }

        $this->addMiddleware();
    }
880385
private function registerApiMiddleware()
    {
        /** @var  \Illuminate\Contracts\Config\Repository  $config */
        $config = $this->app['config'];

        foreach ($config->get('api-helper.middleware', []) as $name => $class) {
            $this->aliasMiddleware($name, $class);
        };
    }
631780
public function register()
    {
        $this->app->singleton('Nord\Lumen\DynamoDb\Contracts\DynamoDbClientInterface', function ($app) {
            $config = [
                'credentials' => [
                    'key'    => config('services.dynamodb.key'),
                    'secret' => config('services.dynamodb.secret'),
                ],
                'region'      => config('services.dynamodb.region'),
                'version'     => config('services.dynamodb.version'),
            ];

            // Set endpoint if local environment.
            if (env('APP_ENV') === 'local' || env('APP_ENV') === 'testing') {
                $config['endpoint'] = config('services.dynamodb.endpoint');
            }

            $client = new DynamoDbClientService($config, new Marshaler(['nullify_invalid' => true]));

            return $client;
        });
    }
159799
protected function registerSystemVoucherTypeInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\System\Repositories\VoucherType\VoucherTypeInterface', function()
		{
			return new \Mgallegos\DecimaAccounting\System\Repositories\VoucherType\EloquentVoucherType( new SystemVoucherType() );
		});
	}
1131194
public static function register()
	{
		if (!in_array(get_called_class(), static::$registeredInterfaces)) {
			static::$registeredInterfaces[] = get_called_class();

			$adminInterface = new static();
			$adminInterface->registerData();

			foreach ($adminInterface->dependencies() as $adminInterfaceClass) {
				$adminInterfaceClass::register();
			}
		}
	}
1350706
public function register()
    {
        $this->app->bind(LoaderInterface::class, ArrayLoader::class);

        $this->registerExtensionConfig();
        $this->registerExtensionFinder();
        $this->registerExtensionManager();
        $this->registerExtensionDispatcher();
        $this->registerExtensionBootstrap();
        $this->registerComposerHandler();
        $this->registerComponentsRepository();
    }
1324102
protected function registerGroupRepository()
    {
        $this->app->singleton('grouprepository', function ($app) {
            $model = $app['config']['sentry.groups.model'];
            $group = new $model();

            $validator = $app['validator'];

            return new GroupRepository($group, $validator);
        });

        $this->app->alias('grouprepository', GroupRepository::class);
    }
1197216
protected function registerAccountChartTypeInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\System\Repositories\AccountChartType\AccountChartTypeInterface', function()
		{
			return new \Mgallegos\DecimaAccounting\System\Repositories\AccountChartType\EloquentAccountChartType( new AccountChartType() );
		});
	}
978879
public function register()
  {
    $middleware = ($this->middleware !== null) ? ['middleware' => $this->middleware] : [];
    $prefix     = ($this->prefix !== null) ? ['prefix' => $this->prefix] : [];
    $domain     = ($this->domain !== null) ? ['domain' => $this->domain] : [];

    Swish::group(array_merge($domain, $middleware, $prefix), function() {
      startphp($this->file);
    });
  }
568985
protected function registerPeriodInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\Accounting\Repositories\Period\PeriodInterface', function($app)
		{
			$AuthenticationManager = $app->make('App\Kwaai\Security\Services\AuthenticationManagement\AuthenticationManagementInterface');

			return new \Mgallegos\DecimaAccounting\Accounting\Repositories\Period\EloquentPeriod(new Period(), $app['db'], $AuthenticationManager->getCurrentUserOrganizationConnection());
		});
	}
757686
public function register()
    {

        $this->mergeConfigFrom(
            __DIR__ . '/config/config.php', 'bluelines'
        );

        $this->app->bind(
            'Blue', function () {
            return new BluelinesApp();
        });

        $this->registerFactoriesPath(__DIR__.'/factories');
    }
524163
protected function registerVoucherTypeInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\Accounting\Repositories\VoucherType\VoucherTypeInterface', function($app)
		{
			$AuthenticationManager = $app->make('App\Kwaai\Security\Services\AuthenticationManagement\AuthenticationManagementInterface');

			return new \Mgallegos\DecimaAccounting\Accounting\Repositories\VoucherType\EloquentVoucherType(new VoucherType(), $AuthenticationManager->getCurrentUserOrganizationConnection());
		});
	}
1039252
protected function registerConfigBindings()
    {
        $loader = new FileLoader(new Filesystem(), $this->resourcePath('config'));

        $this->singleton('config', function () use ($loader) {
            return new Repository($loader, $this->environment());
        });
    }
1323360
protected function registerSystemAccountInterface()
	{
		$this->app->bind('Mgallegos\DecimaAccounting\System\Repositories\Account\AccountInterface', function()
		{
			return new \Mgallegos\DecimaAccounting\System\Repositories\Account\EloquentAccount( new SystemAccount() );
		});
	}
594311
public function register()
    {
        $this->app->singleton(Dispatcher::class, function ($app) {
            return new Dispatcher($app, function ($connection = null) use ($app) {
                return $app[QueueFactoryContract::class]->connection($connection);
            });
        });

        $this->app->alias(
            Dispatcher::class, DispatcherContract::class
        );

        $this->app->alias(
            Dispatcher::class, QueueingDispatcherContract::class
        );
    }