Clockwork\Support\Laravel\ClockworkServiceProvider::boot PHP Метод

boot() публичный Метод

public boot ( )
    public function boot()
    {
        if (!$this->app['clockwork.support']->isCollectingData()) {
            return;
            // Don't bother registering event listeners as we are not collecting data
        }
        $this->app['clockwork.eloquent']->listenToEvents();
        // create the clockwork instance so all data sources are initialized at this point
        $this->app->make('clockwork');
        if (!$this->app['clockwork.support']->isEnabled()) {
            return;
            // Clockwork is disabled, don't register the route
        }
        $this->app['router']->get('/__clockwork/{id}', 'Clockwork\\Support\\Laravel\\Controllers\\ClockworkController@getData')->where('id', '[0-9\\.]+');
    }