App\Providers\EditorServiceProvider::register PHP Method

register() public method

Register the service provider.
public register ( ) : void
return void
    public function register()
    {
        $this->app->singleton(['xe.editor' => EditorHandler::class], function ($app) {
            $editorHandler = $app['xe.interception']->proxy(EditorHandler::class, 'XeEditor');
            /**
             * @var EditorHandler $editorHandler
             */
            $editorHandler = new $editorHandler($app['xe.pluginRegister'], $app['xe.config'], $app, $app['xe.storage'], $app['xe.media'], $app['xe.tag']);
            $editorHandler->setDefaultEditorId($app['config']->get('xe.editor.default'));
            return $editorHandler;
        });
    }
EditorServiceProvider