PluginProbe
The Innovative Form Builder – IvyForms / 0.1.2
The Innovative Form Builder – IvyForms v0.1.2
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.1.2, at backend/src/Routes/Routes.php

42 lines 951 B
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 DI\Container;
16 use DI\DependencyException;
17 use DI\NotFoundException;
18 use IvyForms\Routes\Confirmation\Confirmation;
19 use IvyForms\Routes\Form\Form;
20 use IvyForms\Routes\Notification\Notification;
21
22 /**
23 * Class Routes
24 *
25 * @package IvyForms\Routes
26 */
27 class Routes
28 {
29 public static string $routeNamespace = 'ivyforms/v1';
30
31 /**
32 * @throws DependencyException
33 * @throws NotFoundException
34 */
35 public static function registerRoutes(Container $container): void
36 {
37 Form::registerRoutes($container, self::$routeNamespace);
38 Notification::registerRoutes($container, self::$routeNamespace);
39 Confirmation::registerRoutes($container, self::$routeNamespace);
40 }
41 }
42