12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- declare(strict_types = 1);
- namespace Component\Feed;
- use App\Core\Event;
- use App\Core\Modules\Component;
- use App\Core\Router\RouteLoader;
- use Component\Feed\Controller as C;
- class Feed extends Component
- {
- public function onAddRoute(RouteLoader $r): bool
- {
- $r->connect('feed_public', '/feed/public', [C\Feeds::class, 'public']);
- $r->connect('feed_home', '/feed/home', [C\Feeds::class, 'home']);
- return Event::next;
- }
- }
|