Commit d29885bf authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Début modularisation plafonds

parent dd26ec6f
Loading
Loading
Loading
Loading
+1 −0
Changes for config/application.config.php: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ class AppConfig
            'UnicaenImport',
            'UnicaenTbl',
            'Application',
            'Plafond',
        ];

        if (!self::inConsole()) {
+0 −42
Changes for module/Application/src/Application/Entity/Db/Traits/PlafondApplicationAwareTrait.php: 0 added lines, 42 removed lines.
Original line number Diff line number Diff line
<?php

namespace Application\Entity\Db\Traits;

use Application\Entity\Db\PlafondApplication;

/**
 * Description of PlafondApplicationAwareTrait
 *
 * @author UnicaenCode
 */
trait PlafondApplicationAwareTrait
{
    /**
     * @var PlafondApplication
     */
    protected $plafondApplication;





    /**
     * @param PlafondApplication $plafondApplication
     * @return self
     */
    public function setPlafondApplication( PlafondApplication $plafondApplication = null )
    {
        $this->plafondApplication = $plafondApplication;
        return $this;
    }



    /**
     * @return PlafondApplication
     */
    public function getPlafondApplication()
    {
        return $this->plafondApplication;
    }
}
 No newline at end of file
+64 −0
Changes for module/Plafond/Module.php: 64 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Plafond;

use Zend\Mvc\MvcEvent;
use Zend\Console\Adapter\AdapterInterface as ConsoleAdapterInterface;
use Zend\Stdlib\Glob;
use Zend\Config\Factory as ConfigFactory;

include_once(__DIR__ . '/src/Application/functions.php');





class Module
{

    public function onBootstrap(MvcEvent $e)
    {

    }



    public function getConfig()
    {
        $paths = Glob::glob(__DIR__ . '/config/{,*.}{config}.php', Glob::GLOB_BRACE);

        return ConfigFactory::fromFiles($paths);
    }



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



    public function getConsoleUsage(ConsoleAdapterInterface $console)
    {
        return [

        ];
    }
}
+1 −1
Changes for module/Plafond/config/module.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
<?php

namespace Application;
namespace Plafond;

use Application\Provider\Privilege\Privileges;
use UnicaenAuth\Guard\PrivilegeController;
Loading