Skip to content

Commit

Permalink
2019-07-10 AC: Release-3.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewscaya committed Jul 10, 2019
2 parents 146a5f2 + 21b9882 commit 023c0bf
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 51 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# CHANGELOG

## 3.2.0 (2019-07-10)

- Adds built-in token regeneration to LightMVC Sessions.

- Adds new session configuration options to allow for domain configuration of session cookies.

- Adds a new controller-based pre-dispatch event for all controllers.

- Adds the possibility to configure multiple listeners on a same event when using an AggregateRootController.

- Updates the project's dependencies.

- Updates the user documentation.

## 3.1.2 (2019-05-13)

- Removes some dead code (Skeleton Application).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"require": {
"php": "^7.2",
"lightmvc/ascmvc": "3.1.2"
"lightmvc/ascmvc": "3.2.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
Expand Down
98 changes: 52 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion config/session.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
],
'session_name' => 'PHPSESSION',
'session_path' => '/',
'session_domain' => '',
'session_secure' => false,
'session_httponly' => false,
'session_id_length' => 32,
'session_id_type' => 1,
'session_storage_prefix' => 'ascmvc',
'session_expire' => 60 * 30, // 30 minutes
'session_token_regeneration' => 60 * 30, // 30 minutes
'session_expire' => 60 * 60, // 60 minutes
];
8 changes: 6 additions & 2 deletions config/session.config.php.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$baseConfig['session'] = [
'enabled' => false,
'enabled' => true,
'psr6_cache_pool' => \Ascmvc\Session\Cache\DoctrineCacheItemPool::class,
'doctrine_cache_driver' => \Doctrine\Common\Cache\FilesystemCache::class,
//'doctrine_cache_driver' => \Doctrine\Common\Cache\XcacheCache::class,
Expand All @@ -16,8 +16,12 @@ $baseConfig['session'] = [
],
'session_name' => 'PHPSESSION',
'session_path' => '/',
'session_domain' => '',
'session_secure' => false,
'session_httponly' => false,
'session_id_length' => 32,
'session_id_type' => 1,
'session_storage_prefix' => 'ascmvc',
'session_expire' => 60 * 30, // 30 minutes
'session_token_regeneration' => 60 * 30, // 30 minutes
'session_expire' => 60 * 60, // 60 minutes
];
2 changes: 1 addition & 1 deletion controllers/Application/Commands/WriteProductsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$values = [];

try {
if ($name === 'create') {
if ($name === 'create') {
$productsRepository->save($args);
} elseif ($name === 'update') {
$products = $entityManager->find(Products::class, $args['id']);
Expand Down

0 comments on commit 023c0bf

Please sign in to comment.