Commit 7ee08592 authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

depot initial

parent 25bd6f2a
Loading
Loading
Loading
Loading

CHANGELOG.md

0 → 100644
+5 −0
Original line number Diff line number Diff line
# CHANGELOG

## 1.0.0 (12/10/2023)

- Création du module
 No newline at end of file

Module.php

0 → 100644
+35 −0
Original line number Diff line number Diff line
<?php

namespace Api;

use Laminas\Config\Factory as ConfigFactory;
use Laminas\Stdlib\ArrayUtils;
use Laminas\Stdlib\Glob;
use Laminas\ApiTools\Provider\ApiToolsProviderInterface;

class Module implements ApiToolsProviderInterface
{
    public function getConfig()
    {
        $configInit = [
            __DIR__ . '/../../config/module.config.php'
        ];
        $configFiles = ArrayUtils::merge(
            $configInit,
            Glob::glob(__DIR__ . '/../../config/merged/{,*.}{config}.php', Glob::GLOB_BRACE)
        );

        return ConfigFactory::fromFiles($configFiles);
    }

    public function getAutoloaderConfig()
    {
        return [
            'Laminas\ApiTools\Autoloader' => [
                'namespaces' => [
                    __NAMESPACE__ => __DIR__,
                ],
            ],
        ];
    }
}
+377 −57

File changed.

Preview size limit exceeded, changes collapsed.

composer.json

0 → 100644
+65 −0

File added.

Preview size limit exceeded, changes collapsed.

config/api-v1.yml

0 → 100644
+587 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading