Commit 9e184cbb authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Commit initial.

parent d36a5727
Loading
Loading
Loading
Loading

Module.php

0 → 100755
+34 −0
Original line number Diff line number Diff line
<?php

namespace UnicaenTest;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;

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

    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getAutoloaderConfig()
    {
        return [
            'Zend\Loader\StandardAutoloader' => [
                'namespaces' => [
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ],
            ],
        ];
    }
}

composer.json

0 → 100755
+24 −0
Original line number Diff line number Diff line
{
    "name": "unicaen/unicaen-test",
    "description": "Module consacré aux tests",
    "repositories": [
        {
            "type": "composer",
            "url": "https://dev.unicaen.fr/packagist"
        }
    ],
    "require": {
        "unicaen/unicaen-app":                  "^1.2",
        "zendframework/zend-test":              "^2.4",
        "phpunit/PHPUnit":                      "^5.6",
        "phpspec/prophecy":                     "^1.6"
    },
    "autoload": {
        "psr-0": {
            "UnicaenTest": "src/"
        },
        "classmap": [
            "./Module.php"
        ]
    }
}

composer.lock

0 → 100644
+2651 −0

File added.

Preview size limit exceeded, changes collapsed.

composer.phar

0 → 100755
+1.63 MiB

File added.

No diff preview for this file type.

+24 −0
Original line number Diff line number Diff line
<?php

namespace UnicaenTest;

return [
    'router'          => [
        'routes' => [
        ],
    ],
    'service_manager' => [
        'factories'  => [
        ],
        'invokables' => [
        ],
    ],
    'controllers'     => [
        'invokables' => [
        ],
    ],
    'navigation'      => [
        'default' => [
        ],
    ],
];
Loading