Register the asset publisher service and command.

@return void
975560
protected function registerAssetPublisher()
	{
		$this->registerAssetPublishCommand();

		$this->app->bindShared('asset.publisher', function($app)
		{
			$publicPath = $app['path.public'];

			// The asset "publisher" is responsible for moving package's assets into the
			// web accessible public directory of an application so they can actually
			// be served to the browser. Otherwise, they would be locked in vendor.
			$publisher = new AssetPublisher($app['files'], $publicPath);

			$publisher->setPackagePath($app['path.base'].'/vendor');

			return $publisher;
		});
	}
744165
protected function registerConfigPublisher()
	{
		$this->registerConfigPublishCommand();

		$this->app->bindShared('config.publisher', function($app)
		{
			$path = $app['path'].'/config';

			// Once we have created the configuration publisher, we will set the default
			// package path on the object so that it knows where to find the packages
			// that are installed for the application and can move them to the app.
			$publisher = new ConfigPublisher($app['files'], $path);

			$publisher->setPackagePath($app['path.base'].'/vendor');

			return $publisher;
		});
	}
531783
public function register()
    {
        // Register the Artisan command binding
        $this->app->bind('stolz.assets.command.flush', function ($app) {
            return new FlushPipelineCommand();
        });
        // Merge user's configuration with the default package config file
        //$this->mergeConfigFrom(__DIR__ . '/config.php', 'assets');
        $config = $this->app['config']->get('assets.groups', []);
        // Register the library instances bindings ...
        // No groups defined. Assume the config is for the default group.
        if (! isset($config['default'])) {
            return $this->registerAssetsManagerInstance('default', $config);
        }
        // Multiple groups
        foreach ($config as $groupName => $groupConfig) {
            $this->registerAssetsManagerInstance($groupName, (array) $groupConfig);
        }
    }
445998
public function register(): void
    {
        $this->app->register(EventServiceProvider::class);

        $this->commands([
            InstallCommand::class
        ]);

        $this->registerBindings();
    }
599745
public function register()
    {
        $this->app->register(AdminEventServiceProvider::class);
        $this->app->register(ImageServiceProvider::class);
        $this->app->register(WidgetServiceProvider::class);
        $this->app->register(DoctrineSupportServiceProvider::class);

        $loader = AliasLoader::getInstance();
        $loader->alias('Admin', AdminFacade::class);

        $this->app->singleton('admin', function () {
            return new Admin();
        });

        $this->loadHelpers();

        $this->registerAlertComponents();
        $this->registerFormFields();
        $this->registerWidgets();

        $this->registerConfigs();

        if ($this->app->runningInConsole()) {
            $this->registerPublishableResources();
            $this->registerConsoleCommands();
        }

        if (!$this->app->runningInConsole() || config('app.env') == 'testing') {
            $this->registerAppCommands();
        }
    }
398020
protected function registerAssets()
    {
        do_action("before_theme_register_assets");

        $assets = $this->getConfig("assets");

        add_action("wp_enqueue_scripts", function () use ($assets) {
            foreach ($assets as $id => $asset) :
                $file = strpos($asset["file"], "//") === false ? get_template_directory_uri() . "/public/" . $asset["file"] : $asset["file"];
                if ($asset["type"] == "js") :
                    wp_enqueue_script($id, $file, $asset["dependencies"], $asset["version"], $asset["footer"]);
                elseif ($asset["type"] == "css") :
                    wp_enqueue_style($id, $file, $asset["dependencies"], $asset["version"], "all");
                endif;
            endforeach;
        });

        do_action("after_theme_register_assets");
    }
1120539
public function register()
    {
        $this->loadAdminAuthConfig();

        $this->registerRouteMiddleware();

        $this->commands($this->commands);

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

        $this->app->singleton(TerminalApplication::class, function ($app) {
            $config = $app['config']['terminal'];
            $artisan = new TerminalApplication($app, $app['events'], $app->version());
            $artisan->resolveCommands($config['commands']);

            return $artisan;
        });

        $this->app->singleton(Kernel::class, function ($app) {
            $config = $app['config']['terminal'];

            return new Kernel($app[TerminalApplication::class], array_merge($config, [
                'basePath' => base_path(),
                //'basePath' => cookie('cd_base_path'),
                'environment' => $app->environment(),
                'version' => $app->version(),
                'endpoint' => $app['url']->route('terminal.endpoint'),
            ]));
        });
    }
1223911
protected function registerPublishes()
    {
        // Config
        $this->publishes(
            [
                __DIR__ . '/../../../config/config.php' => config_path('gzero.php'),
            ],
            'gzero-core config'
        );

        // Factories
        $this->publishes(
            [
                __DIR__ . '/../../../database/factories/UserFactory.php' => database_path('factories/gzero.php'),
            ],
            'gzero-core factories'
        );

        // Views
        $this->publishes(
            [
                __DIR__ . '/../../../resources/views' => resource_path('views/vendor/gzero-core'),
            ],
            'gzero-core views'
        );
    }
623255
public function register()
    {
        $this->app->register(\Intervention\Image\ImageServiceProvider::class);

        $this->app->singleton('media', function () {
            return $this->app->make(config('media.manager', Manager::class));
        });
    }
258610
protected function publishFiles()
    {
        $this->publishes([
            __DIR__.'/../Config/installer.php' => base_path('config/installer.php'),
        ], 'laravelinstaller');

        $this->publishes([
            __DIR__.'/../assets' => public_path('installer'),
        ], 'laravelinstaller');

        $this->publishes([
            __DIR__.'/../Views' => base_path('resources/views/vendor/installer'),
        ], 'laravelinstaller');

        $this->publishes([
            __DIR__.'/../Lang' => base_path('resources/lang'),
        ], 'laravelinstaller');
    }
1187926
public function register()
    {
        $this->app->singleton('asset', function ($app, $parameters = []) {
            if (count($parameters) < 2) {
                $parameters = array_merge($parameters, [null]);
            }
            list($dir, $path) = $parameters;

            return new Asset($dir, $path);
        });

        $this->app->bind('manifest', function ($app, $parameters = []) {
            if (count($parameters) < 2) {
                $parameters = array_merge($parameters, [null]);
            }
            list($dir, $path) = $parameters;

            return new Manifest($dir, $path);
        });

        // TODO: Allow to register or not Larasset commands in production env with a config option
        if ($this->app->environment() !== 'production' && $this->app['config']->get('app.debug')) {
            // For security reasons Larasset commands aren't available in production environment
            $this->registerCommands();
        }

        // TODO: Allow to publish default package.json in the config path of the package
    }
1091213
protected function registerBaseServices(): void
    {
        $this->services['acl'] = $this->app->make('orchestra.acl')->make('orchestra');
        $this->app->instance('orchestra.platform.acl', $this->services['acl']);

        $this->services['menu'] = $this->widget('menu');
        $this->app->instance('orchestra.platform.menu', $this->services['menu']);
    }
18617
public function register()
    {
        $this->app['themes'] = $this->app->share(function ($app) {
            return new Repository(
                new Finder(),
                $app['config'],
                $app['view'],
                $app['translator'],
                $app['cache.store']
            );
        });

        $this->registerCommands();
    }
626022
public function register()
    {
        if (! defined('HORIZON_PATH')) {
            define('HORIZON_PATH', realpath(__DIR__.'/../'));
        }

        $this->configure();
        $this->offerPublishing();
        $this->registerServices();
        $this->registerCommands();
        $this->registerQueueConnectors();
    }
1177098
public function register()
    {
        $this->app->singleton('localization.js', function ($app) {

            $files = $app['files'];
            $langs = $app['path.base'].'/resources/lang';
            $messages = $app['config']->get('localization-js.messages');
            $generator = new Generators\LangJsGenerator($files, $langs, $messages);

            return new Commands\LangJsCommand($generator);
        });

        // Bind the Laravel JS Localization command into Laravel Artisan.
        $this->commands('localization.js');
    }
1153604
public function registerAssets()
    {
        $view = $this->getView();
        $bundle = NotyAsset::register($view);
        $bundle->animateCss = $this->registerAnimateCss;
        $bundle->buttonsCss = $this->registerButtonsCss;
    }
404593
protected function registerConfigPublishCommand()
    {
        $this->app->bindShared('config.publisher', function($app)
        {
            $path = $app['path'] .DS .'Config';

            $publisher = new ConfigPublisher($app['files'], $app['config'], $path);

            return $publisher;
        });

        $this->app->bindShared('command.config.publish', function($app)
        {
            $configPublisher = $app['config.publisher'];

            return new ConfigPublishCommand($configPublisher);
        });
    }