Commit 79cfbf05 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

init

parents
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
.idea

.gitlab-ci.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
image: registre.unicaen.fr:5000/unicaen-dev-php7.3-apache

stages:
- publish

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
  - vendor/

update-satis:
  stage: publish
  script:
    - curl https://gest.unicaen.fr/packagist/update

Module.php

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

namespace UnicaenSynchro;

use Laminas\Mvc\ModuleRouteListener;
use Laminas\Mvc\MvcEvent;
use Laminas\Config\Factory as ConfigFactory;
use Laminas\Stdlib\ArrayUtils;
use Laminas\Stdlib\Glob;

class Module
{
    public function onBootstrap(MvcEvent $e)
    {
        $eventManager        = $e->getApplication()->getEventManager();
        $moduleRouteListener = new ModuleRouteListener();
        $moduleRouteListener->attach($eventManager);
    }

    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 array(
            'Laminas\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }
}

composer.json

0 → 100755
+19 −0
Original line number Diff line number Diff line
{
    "name": "unicaen/synchro",
    "description": "Module de synchronisation",
    "repositories": [
        {
            "type": "composer",
            "url": "https://gest.unicaen.fr/packagist"
        }
    ],
    "require": {
        "unicaen/privilege": "^5||^6"
    },
    "autoload": {
        "psr-0": [],
        "classmap": [
            "./Module.php"
        ]
    }
}
+34 −0
Original line number Diff line number Diff line
<?php

namespace UnicaenSynchro;

use UnicaenSynchro\Service\SqlHelper\SqlHelperService;
use UnicaenSynchro\Service\SqlHelper\SqlHelperServiceFactory;

return [
    'bjyauthorize' => [
        'guards' => [
        ],
    ],

    'router'          => [
        'routes' => [
        ],
    ],

    'service_manager' => [
        'factories' => [
            SqlHelperService::class => SqlHelperServiceFactory::class
        ],
    ],
    'controllers'     => [
        'factories' => [],
    ],
    'form_elements' => [
        'factories' => [],
    ],
    'hydrators' => [
        'factories' => [],
    ]

];
 No newline at end of file
Loading