Loading .gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line auth.json vendor/ .idea/ data/DoctrineModule/ data/DoctrineORMModule/ .DS_Store No newline at end of file Dockerfile.php7.dev +5 −1 Changes for Dockerfile.php7.dev: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \ libjpeg62-turbo-dev \ libldap2-dev \ libmcrypt-dev \ libmemcached-dev \ libssl-dev \ libxml2-dev \ make \ Loading @@ -32,11 +33,13 @@ RUN apt-get update && apt-get install -y \ zlib1g-dev \ && docker-php-ext-install -j$(nproc) iconv gettext gd soap curl intl zip \ && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && docker-php-ext-install ldap \ && docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache \ && rm -rf /var/lib/apt/lists/* # Installation d'extensions PECL RUN pear config-set http_proxy "$HTTP_PROXY" && \ pecl install xdebug && docker-php-ext-enable xdebug pecl install xdebug && docker-php-ext-enable xdebug && \ pecl install memcached && docker-php-ext-enable memcached # Package PHP Oracle OCI8 ADD docker/instantclient-basiclite-linux.x64-12.2.0.1.0.zip /tmp/ Loading @@ -58,6 +61,7 @@ ENV LD_LIBRARY_PATH /usr/local/instantclient # Config PHP. ADD docker/php.conf /usr/local/etc/php/conf.d/webapp.ini #ADD docker/opcache.ini /usr/local/etc/php/conf.d/01-opcache.ini # Configuration et activation du site Apache ADD docker/apache.conf /etc/apache2/sites-available/webapp.conf Loading docker/opcache.ini +7 Changes for docker/opcache.ini: 7 added lines, 0 removed lines. Original line number Diff line number Diff line opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 opcache.enable=1 module/Application/config/module.config.php +9 −1 Changes for module/Application/config/module.config.php: 9 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Cache\MemcachedFactory; use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Event\UserAuthenticatedEventListenerFactory; use Application\Event\UserRoleSelectedEventListener; Loading Loading @@ -60,7 +61,13 @@ return array( 'orm_default' => [ 'default_repository_class_name' => DefaultEntityRepository::class, ] ] ], 'cache' => [ 'memcached' => [ 'namespace' => 'Sygal_Doctrine', 'instance' => 'Sygal\Memcached', ], ], ], 'router' => [ 'routes' => [ Loading Loading @@ -164,6 +171,7 @@ return array( 'UserAuthenticatedEventListener' => UserAuthenticatedEventListenerFactory::class, 'UnicaenApp\Service\Mailer' => MailerServiceFactory::class, 'NotificationService' => NotificationServiceFactory::class, 'Sygal\Memcached' => MemcachedFactory::class, ), 'initializers' => [ ServiceAwareInitializer::class, Loading module/Application/src/Application/Cache/MemcachedFactory.php +17 Changes for module/Application/src/Application/Cache/MemcachedFactory.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Cache; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class MemcachedFactory implements FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator) { $memcached = new \Memcached(); $memcached->addServer('memcache_host', 11211); return $memcached; } } No newline at end of file Loading
.gitignore +1 Changes for .gitignore: 1 added line, 0 removed lines. Original line number Diff line number Diff line auth.json vendor/ .idea/ data/DoctrineModule/ data/DoctrineORMModule/ .DS_Store No newline at end of file
Dockerfile.php7.dev +5 −1 Changes for Dockerfile.php7.dev: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \ libjpeg62-turbo-dev \ libldap2-dev \ libmcrypt-dev \ libmemcached-dev \ libssl-dev \ libxml2-dev \ make \ Loading @@ -32,11 +33,13 @@ RUN apt-get update && apt-get install -y \ zlib1g-dev \ && docker-php-ext-install -j$(nproc) iconv gettext gd soap curl intl zip \ && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && docker-php-ext-install ldap \ && docker-php-ext-configure opcache --enable-opcache && docker-php-ext-install opcache \ && rm -rf /var/lib/apt/lists/* # Installation d'extensions PECL RUN pear config-set http_proxy "$HTTP_PROXY" && \ pecl install xdebug && docker-php-ext-enable xdebug pecl install xdebug && docker-php-ext-enable xdebug && \ pecl install memcached && docker-php-ext-enable memcached # Package PHP Oracle OCI8 ADD docker/instantclient-basiclite-linux.x64-12.2.0.1.0.zip /tmp/ Loading @@ -58,6 +61,7 @@ ENV LD_LIBRARY_PATH /usr/local/instantclient # Config PHP. ADD docker/php.conf /usr/local/etc/php/conf.d/webapp.ini #ADD docker/opcache.ini /usr/local/etc/php/conf.d/01-opcache.ini # Configuration et activation du site Apache ADD docker/apache.conf /etc/apache2/sites-available/webapp.conf Loading
docker/opcache.ini +7 Changes for docker/opcache.ini: 7 added lines, 0 removed lines. Original line number Diff line number Diff line opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=4000 opcache.revalidate_freq=60 opcache.fast_shutdown=1 opcache.enable_cli=1 opcache.enable=1
module/Application/config/module.config.php +9 −1 Changes for module/Application/config/module.config.php: 9 added lines, 1 removed line. Original line number Diff line number Diff line <?php use Application\Cache\MemcachedFactory; use Application\Entity\Db\Repository\DefaultEntityRepository; use Application\Event\UserAuthenticatedEventListenerFactory; use Application\Event\UserRoleSelectedEventListener; Loading Loading @@ -60,7 +61,13 @@ return array( 'orm_default' => [ 'default_repository_class_name' => DefaultEntityRepository::class, ] ] ], 'cache' => [ 'memcached' => [ 'namespace' => 'Sygal_Doctrine', 'instance' => 'Sygal\Memcached', ], ], ], 'router' => [ 'routes' => [ Loading Loading @@ -164,6 +171,7 @@ return array( 'UserAuthenticatedEventListener' => UserAuthenticatedEventListenerFactory::class, 'UnicaenApp\Service\Mailer' => MailerServiceFactory::class, 'NotificationService' => NotificationServiceFactory::class, 'Sygal\Memcached' => MemcachedFactory::class, ), 'initializers' => [ ServiceAwareInitializer::class, Loading
module/Application/src/Application/Cache/MemcachedFactory.php +17 Changes for module/Application/src/Application/Cache/MemcachedFactory.php: 17 added lines, 0 removed lines. Original line number Diff line number Diff line <?php namespace Application\Cache; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class MemcachedFactory implements FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator) { $memcached = new \Memcached(); $memcached->addServer('memcache_host', 11211); return $memcached; } } No newline at end of file