# give/4.16.5.1/src/ServiceProviders/Routes.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.5.1. 41 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.5.1/code/src/ServiceProviders/Routes.php
- Raw: https://pluginprobe.com/plugins/give/4.16.5.1/raw/src/ServiceProviders/Routes.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.5.1/code/src/ServiceProviders/Routes.php#L10-L20`.

```php
<?php

namespace Give\ServiceProviders;

use Give\Route\PayPalWebhooks;
use Give\Route\Route;

/**
 * Class Routes
 *
 * This loads the application routes. For now it's very simple, but in the future
 * we will introduce a unified Router. In the meantime, all routes are organized
 * here.
 */
class Routes implements ServiceProvider
{
    private $routes = [
        PayPalWebhooks::class,
    ];

    /**
     * @inheritDoc
     */
    public function register()
    {
    }

    /**
     * @inheritDoc
     */
    public function boot()
    {
        foreach ($this->routes as $route) {
            /** @var Route $route */
            $route = new $route();

            $route->init();
        }
    }
}

```
