Skip to content
Snippets Groups Projects
Commit cc52cd1c authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections diverses.

parent a960a189
No related branches found
No related tags found
No related merge requests found
Pipeline #3991 passed
...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.0-apache ...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.0-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \ ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.0 PHP_CONF_DIR=/etc/php/7.0
## Installation de packages requis. ## Installation de packages requis.
RUN apt-get install -y \ RUN apt-get update -qq && apt-get install -y \
sqlite3 \ sqlite3 \
php7.0-pdo-sqlite php7.0-pdo-sqlite
......
...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.1-apache ...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.1-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \ ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.1 PHP_CONF_DIR=/etc/php/7.1
## Installation de packages requis. ## Installation de packages requis.
RUN apt-get install -y \ RUN apt-get update -qq && apt-get install -y \
sqlite3 \ sqlite3 \
php7.1-pdo-sqlite php7.1-pdo-sqlite
......
...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.2-apache ...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.2-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \ ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.2 PHP_CONF_DIR=/etc/php/7.2
## Installation de packages requis. ## Installation de packages requis.
RUN apt-get install -y \ RUN apt-get update -qq && apt-get install -y \
sqlite3 \ sqlite3 \
php7.2-pdo-sqlite php7.2-pdo-sqlite
......
...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.3-apache ...@@ -9,13 +9,12 @@ FROM unicaen-dev-php7.3-apache
LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>" LABEL maintainer="Bertrand GAUTHIER <bertrand.gauthier at unicaen.fr>"
WORKDIR /app WORKDIR /app
ADD . /app
ENV APACHE_CONF_DIR=/etc/apache2 \ ENV APACHE_CONF_DIR=/etc/apache2 \
PHP_CONF_DIR=/etc/php/7.3 PHP_CONF_DIR=/etc/php/7.3
## Installation de packages requis. ## Installation de packages requis.
RUN apt-get install -y \ RUN apt-get update -qq && apt-get install -y \
sqlite3 \ sqlite3 \
php7.3-pdo-sqlite php7.3-pdo-sqlite
......
This diff is collapsed.
<?php <?php
$modules = [ $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\Router',
'Zend\Session',
'Zend\Validator', 'Zend\Validator',
'DoctrineModule', 'DoctrineModule',
'DoctrineORMModule', 'DoctrineORMModule',
'ZfcUser', 'ZfcUser',
...@@ -15,7 +33,7 @@ $modules = [ ...@@ -15,7 +33,7 @@ $modules = [
if ( 'development' == getenv('APPLICATION_ENV') ?: 'production' ) { if ( 'development' == getenv('APPLICATION_ENV') ?: 'production' ) {
$modules[] = 'ZendDeveloperTools'; $modules[] = 'ZendDeveloperTools';
$modules[] = 'UnicaenCode'; // $modules[] = 'UnicaenCode';
} }
$moduleListenerOptions = [ $moduleListenerOptions = [
......
...@@ -10,5 +10,5 @@ services: ...@@ -10,5 +10,5 @@ services:
- "8880:80" - "8880:80"
- "8843:443" - "8843:443"
volumes: volumes:
- .:/var/www/webapp - .:/app
working_dir: /var/www/webapp working_dir: /app
...@@ -22,3 +22,7 @@ pm.max_requests = 500 ...@@ -22,3 +22,7 @@ pm.max_requests = 500
request_slowlog_timeout = 30 request_slowlog_timeout = 30
slowlog = /var/log/php5-fpm.slow.log 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; ...@@ -5,13 +5,16 @@ namespace Application;
use Zend\Mvc\ModuleRouteListener; use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent; use Zend\Mvc\MvcEvent;
use Zend\Http\Request as HttpRequest; use Zend\Http\Request as HttpRequest;
use Zend\Session\SessionManager;
class Module class Module
{ {
public function onBootstrap(MvcEvent $e) public function onBootstrap(MvcEvent $e)
{ {
$e->getApplication()->getServiceManager()->get('translator'); $application = $e->getApplication();
$eventManager = $e->getApplication()->getEventManager(); $serviceManager = $application->getServiceManager();
$serviceManager->get('translator');
$eventManager = $application->getEventManager();
$moduleRouteListener = new ModuleRouteListener(); $moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager); $moduleRouteListener->attach($eventManager);
...@@ -24,6 +27,10 @@ class Module ...@@ -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() public function getConfig()
......
...@@ -16,7 +16,7 @@ return [ ...@@ -16,7 +16,7 @@ return [
'bjyauthorize' => [ 'bjyauthorize' => [
'guards' => [ 'guards' => [
'BjyAuthorize\Guard\Controller' => [ '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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment