| | |
| | | 'login' => new LoginRoutes(), |
| | | 'integrations' => new IntegrationsRoutes(), |
| | | ]; |
| | | if (jvbSiteUsesFeedBlock()) { |
| | | if (Features::forSite()->has('feed_block')) { |
| | | $this->routes['feed'] = new FeedRoutes(); |
| | | } |
| | | if (jvbSiteHasNotifications()) { |
| | | $this->managers['notifications'] = new NotificationManager(); |
| | | $this->routes['notifications'] = new NotificationsRoutes(); |
| | | } |
| | | if (jvbSiteUsesFeedBlock() || jvbSiteHasDashboard()) { |
| | | if (Features::forSite()->has('feed_block') || jvbSiteHasDashboard()) { |
| | | $this->routes['term'] = new TermRoutes(); |
| | | } |
| | | |
| | |
| | | |
| | | public function activate():void |
| | | { |
| | | error_log('Activate!'); |
| | | // Activate roles - will be properly initialized after post types are registered |
| | | $this->roles()->activate(); |
| | | } |