Register the necessary event listeners.

@return void
548762
protected static function bootURLFromCategory()
    {
        static::creating(function ($model) {
            $model->updateUrl($model);
        });

        static::updating(function ($model) {
            $model->updateUrl($model);
        });
    }
516231
public function boot(): void
    {
        $this->registerConsoleCommands();
        $this->registerObservers();
        $this->registerPublishes();
        $this->registerMigrations();
        $this->registerListeners();
    }
574505
public function register()
    {
        foreach ($this->menus as &$menuTitle)
        {
            $menuTitle = __($menuTitle);
        }

        register_nav_menus($this->menus);
    }
94596
protected function registerEventListeners()
    {
        foreach ($this->events as $event => $listener) {
            Event::listen($event, $listener);
        }

        return $this;
    }
1322632
public function register(): void
    {
        parent::register();

        /** @var Dispatcher $events */
        $events = $this->app['events'];

        $events->listen(MessageReceived::class, HandleConversation::class);
    }
786996
protected function registerListeners()
    {
        $this->process->getDispatcher()->addListener(LogEvent::EVENT_NAME, function (LogEvent $event) {
            $this->data = $event->toArray();
            $this->stream();
        });
    }
383987
public function register()
    {
        $this->registerShop();

        $this->registerCommands();

        $this->mergeConfig();

        /*
         * Subscribe to events class
         */
        $this->app->events->subscribe(new UserLogged());
    }
445998
public function register(): void
    {
        $this->app->register(EventServiceProvider::class);

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

        $this->registerBindings();
    }
940198
public function register()
    {
        $this->registerWhatsProt();
        $this->registerEventListener();
        $this->registerMediaManager();
        $this->registerMessageManager();
        $this->registerSessionManager();
        $this->registerRegistrationTool();
        $this->registerWhatsapi();

        $this->mergeConfigFrom(__DIR__ . '/Config/config.php', 'whatsapi');
    }
1255032
public function register()
    {
        $this->app->bind(Moderator::class, function ($app) {
            $config = $app->config->get('moderate', []);

            return new Moderator($config, $app['cache'], $app->getLocale());
        });

        // Register update event with the application
        $this->app['events']->listen('blacklist.updated', function () {
            $this->app[Moderator::class]->reloadBlacklist();
        });
    }
199234
public static function register_elements() {
		foreach ( self::$_elements as $element => $locations ) {
			$class = self::get_element_class_name( $element );

			if ( method_exists( $class, 'init' ) ) {
				call_user_func( [ $class, 'init' ], $locations );
			}
		}
	}
664689
public function register()
    {
        $this->registerFoundation();

        $this->registerMetaContainer();

        $this->registerThrottlesLogins();

        $this->registerFacadesAliases();

        $this->registerCoreContainerAliases();

        $this->registerEventListeners();
    }
424746
public function initializeEventListeners()
    {
        $configuration = $this->getConfiguration();
        $eventDispatcher = $this->getContainer()->get('event_dispatcher');
        foreach ($configuration->getEventListeners() as $eventName => $listeners) {
            foreach ($listeners as $listener) {
                list($listenerClassName, $listenerMethodName) = explode('::', $listener);

                $listenerInstance = ObjectFactory::getInstance()->newInstance($listenerClassName);
                if ($listenerInstance !== null) {
                    $eventDispatcher->addListener($eventName, array($listenerInstance, $listenerMethodName));
                }
            }
        }

        foreach ($configuration->getEventSubscribers() as $subscriber) {
            $subscriberInstance = ObjectFactory::getInstance()->newInstance($subscriber['class'], $subscriber);
            if ($subscriberInstance instanceof EventSubscriberInterface) {
                $eventDispatcher->addSubscriber($subscriberInstance);
            }
        }
    }
1130067
public function registerEvents()
    {
        $job = & $this->job;

        Event::listen(Event::JOB_PERFORM, function ($event, $_job) use (&$job) {
            $job = $_job;
        });
    }
1322172
public function registerEvents()
    {
        if (!empty($this->clientEvents)) {
            $js = [];
            foreach ($this->clientEvents as $event => $handle) {
                $js[] = "jQuery('#{$this->options['id']}').on('{$event}',{$handle});";
            }
            $this->getView()->registerJs(implode(PHP_EOL, $js));
        }
    }
1157303
protected function registerListeners()
    {
        $this->process->getDispatcher()->addListener(Start::EVENT_NAME, function (Start $event) {
            $this->data = [
                'key' => md5($event->getKey()),
                'start' => $event->getTimestamp(),
                'label' => $event->getLabel(),
                'data' => $event->getData()
            ];
            $this->stream();
        });

        $this->process->getDispatcher()->addListener(End::EVENT_NAME, function (End $event) {
            $this->data = [
                'key' => md5($event->getKey()),
                'end' => $event->getTimestamp(),
            ];
            $this->stream();
        });
    }
663366
public function register() {

		$this->app->bind( Attributes::class, Attr::class );

		$this->app->alias( Attributes::class, 'attr' );
	}