PluginProbe
The Innovative Form Builder – IvyForms / 0.4
The Innovative Form Builder – IvyForms v0.4
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Routes / Routes.php

Routes.php in The Innovative Form Builder – IvyForms 0.4, at backend/src/Routes/Routes.php

48 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @copyright © TMS-Plugins. All rights.
5 * @licence See LICENCE.md for license details.
6 */
7
8 namespace IvyForms\Routes;
9
10 // phpcs:disable PSR1.Files.SideEffects
11 if (!defined('ABSPATH')) {
12 exit; // Exit if accessed directly
13 }
14
15 use IvyForms\Vendor\DI\Container;
16 use IvyForms\Vendor\DI\DependencyException;
17 use IvyForms\Vendor\DI\NotFoundException;
18 use IvyForms\Routes\Confirmation\Confirmation;
19 use IvyForms\Routes\Entry\Entry;
20 use IvyForms\Routes\Form\Form;
21 use IvyForms\Routes\Notification\Notification;
22 use IvyForms\Routes\Template\Template;
23 use IvyForms\Routes\Settings\Settings;
24
25 /**
26 * Class Routes
27 *
28 * @package IvyForms\Routes
29 */
30 class Routes
31 {
32 public static string $routeNamespace = 'ivyforms/v1';
33
34 /**
35 * @throws DependencyException
36 * @throws NotFoundException
37 */
38 public static function registerRoutes(Container $container): void
39 {
40 Form::registerRoutes($container, self::$routeNamespace);
41 Notification::registerRoutes($container, self::$routeNamespace);
42 Confirmation::registerRoutes($container, self::$routeNamespace);
43 Entry::registerRoutes($container, self::$routeNamespace);
44 Template::registerRoutes($container, self::$routeNamespace);
45 Settings::registerRoutes($container, self::$routeNamespace);
46 }
47 }
48