Commit cc52cd1c authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections diverses.

parent a960a189
Pipeline #3991 passed with stage
in 21 seconds
......@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.0-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.0
## Installation de packages requis.
RUN apt-get install -y \
RUN apt-get update -qq && apt-get install -y \
sqlite3 \
php7.0-pdo-sqlite
......
......@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.1-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.1
## Installation de packages requis.
RUN apt-get install -y \
RUN apt-get update -qq && apt-get install -y \
sqlite3 \
php7.1-pdo-sqlite
......
......@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.2-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.2
## Installation de packages requis.
RUN apt-get install -y \
RUN apt-get update -qq && apt-get install -y \
sqlite3 \
php7.2-pdo-sqlite
......
......@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.3-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.3
## Installation de packages requis.
RUN apt-get install -y \
RUN apt-get update -qq && apt-get install -y \
sqlite3 \
php7.3-pdo-sqlite
......
This diff is collapsed.
<?php
$modules = [
'Zend\Cache',
'Zend\Filter',
'Zend\Form',
'Zend\Hydrator',
'Zend\I18n',
'Zend\InputFilter',
'Zend\Log',
'Zend\Mail',
'Zend\Mvc\Console',
'Zend\Mvc\I18n',
// 'Zend\Mvc\Plugin\FilePrg',
'Zend\Mvc\Plugin\FlashMessenger',
// 'Zend\Mvc\Plugin\Identity',
'Zend\Mvc\Plugin\Prg',
'Zend\Navigation',
'Zend\Paginator',
'Zend\Router',
'Zend\Session',
'Zend\Validator',
'DoctrineModule',
'DoctrineORMModule',
'ZfcUser',
......@@ -15,7 +33,7 @@ $modules = [
if ( 'development' == getenv('APPLICATION_ENV') ?: 'production' ) {
$modules[] = 'ZendDeveloperTools';
$modules[] = 'UnicaenCode';
// $modules[] = 'UnicaenCode';
}
$moduleListenerOptions = [
......
......@@ -10,5 +10,5 @@ services:
- "8880:80"
- "8843:443"
volumes:
- .:/var/www/webapp
working_dir: /var/www/webapp
- .:/app
working_dir: /app
......@@ -22,3 +22,7 @@ pm.max_requests = 500
request_slowlog_timeout = 30
slowlog = /var/log/php5-fpm.slow.log
php_admin_value[error_log] = /var/log/fpm-php.log
; php_admin_value[log_level] = warning
php_admin_flag[log_errors] = on
#!/usr/bin/env bash
cd /home/gauthierb/workspace/unicaen-skeleton-application/vendor/unicaen/app
cd ../app && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../auth && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../bjy-authorize && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../faq && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../import && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../ldap && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../leocarte && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../oracle && git add . && git commit -m "Corrections pour passer à ZF3." && git push ; \
cd ../../.. && \
../satis-build
......@@ -5,13 +5,16 @@ namespace Application;
use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Zend\Http\Request as HttpRequest;
use Zend\Session\SessionManager;
class Module
{
public function onBootstrap(MvcEvent $e)
{
$e->getApplication()->getServiceManager()->get('translator');
$eventManager = $e->getApplication()->getEventManager();
$application = $e->getApplication();
$serviceManager = $application->getServiceManager();
$serviceManager->get('translator');
$eventManager = $application->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
......@@ -24,6 +27,10 @@ class Module
}
}
);
// The following line instantiates the SessionManager and automatically
// makes the SessionManager the 'default' one.
// $serviceManager->get(SessionManager::class);
}
public function getConfig()
......
......@@ -16,7 +16,7 @@ return [
'bjyauthorize' => [
'guards' => [
'BjyAuthorize\Guard\Controller' => [
['controller' => 'Demo\Controller\Index', 'roles' => []],
['controller' => 'Demo\Controller\Index', 'roles' => 'guest'],
],
],
],
......
unicaen/
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment