diff --git a/composer.json b/composer.json index 30109d067530019b1bf90af78568e3a25e81de73..b24da28c27b9eeeab800c1be4a7298ca5e293faf 100644 --- a/composer.json +++ b/composer.json @@ -14,6 +14,11 @@ "simplesamlphp/composer-module-installer": true } }, + "autoload": { + "psr-4": { + "SimpleSAML\\Module\\accounting\\": "src/" + } + }, "require": { "php": "^7.4 || ^8.0", "ext-pdo": "*", diff --git a/config-templates/module_accounting.php b/config-templates/module_accounting.php new file mode 100644 index 0000000000000000000000000000000000000000..8efd02338f0e4d71f1d0f50d4ad45bf272882e9d --- /dev/null +++ b/config-templates/module_accounting.php @@ -0,0 +1,5 @@ +<?php + +$config = [ + +]; \ No newline at end of file diff --git a/routing/routes/routes.yaml b/routing/routes/routes.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9ac5397c558584c1420245aa55f088f957072bfe --- /dev/null +++ b/routing/routes/routes.yaml @@ -0,0 +1,4 @@ + +accounting-test: + path: /test + defaults: { _controller: 'SimpleSAML\Module\accounting\Controller\Test::test' } diff --git a/src/Controller/Test.php b/src/Controller/Test.php new file mode 100644 index 0000000000000000000000000000000000000000..d020faa79477a78c7e910d275f9c448d95361798 --- /dev/null +++ b/src/Controller/Test.php @@ -0,0 +1,11 @@ +<?php + +namespace SimpleSAML\Module\accounting\Controller; + +class Test +{ + public function test(): void + { + echo 'test'; + } +}