protected function bootMemoryEvent()
    {
        $app = $this->app;
        /** looking for forms * */
        //$app->make('events')->listen('antares.forms', function ($name) use ($app) {
        $app->make('events')->listen(Form::class, function (Form $event) use ($app) {
            $app->make('antares.memory')->make('registry.forms')->put('forms', $event->formName);
        });
        /** when application is terminating we collect all data from application * */
        $app->terminating(function () use ($app) {
            if (!app('antares.installed')) {
                //$app->make('antares.memory')->finish();
            }
        });
        //$app->make('events')->listen('antares.after.load-service-providers', function() {
        $app->make('events')->listen(LoadServiceProviders::class, function() {
            $this->app->make('antares.defered.service')->run();
        });
    }