LegacyServiceProvider.php
4 years ago
Onboarding.php
4 years ago
PaymentGateways.php
4 years ago
RestAPI.php
4 years ago
Routes.php
4 years ago
ServiceProvider.php
4 years ago
Routes.php
41 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\ServiceProviders; |
| 4 | |
| 5 | use Give\Route\PayPalWebhooks; |
| 6 | use Give\Route\Route; |
| 7 | |
| 8 | /** |
| 9 | * Class Routes |
| 10 | * |
| 11 | * This loads the application routes. For now it's very simple, but in the future |
| 12 | * we will introduce a unified Router. In the meantime, all routes are organized |
| 13 | * here. |
| 14 | */ |
| 15 | class Routes implements ServiceProvider |
| 16 | { |
| 17 | private $routes = [ |
| 18 | PayPalWebhooks::class, |
| 19 | ]; |
| 20 | |
| 21 | /** |
| 22 | * @inheritDoc |
| 23 | */ |
| 24 | public function register() |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @inheritDoc |
| 30 | */ |
| 31 | public function boot() |
| 32 | { |
| 33 | foreach ($this->routes as $route) { |
| 34 | /** @var Route $route */ |
| 35 | $route = new $route(); |
| 36 | |
| 37 | $route->init(); |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 |