-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1130 from wagnert/1.1
Pre-Initialize LDAP configuration encryption parameter + Add Doctrine…
- Loading branch information
Showing
8 changed files
with
130 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Upgrade from 1.1.23 to 1.1.24 | ||
|
||
Updating from 1.1.23 to 1.1.24 doesn't have any impacts. Please read the apropriate UPGRADE-1.x.x files for updates from older versions to 1.1.24. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ppserverIo/Appserver/PersistenceContainer/Doctrine/V2/CacheFactories/ApcuCacheFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
/** | ||
* AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\ApcuCacheFactory | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* PHP version 5 | ||
* | ||
* @author Tim Wagner <tw@appserver.io> | ||
* @copyright 2015 TechDivision GmbH <info@appserver.io> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* @link https://github.com/appserver-io/rmi | ||
* @link http://www.appserver.io | ||
*/ | ||
|
||
namespace AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories; | ||
|
||
use Doctrine\Common\Cache\ApcuCache; | ||
|
||
/** | ||
* The factory implementation for an ApcuCache cache instance. | ||
* | ||
* @author Tim Wagner <tw@appserver.io> | ||
* @author Bernhard Wick <bw@appserver.io> | ||
* @copyright 2015 TechDivision GmbH <info@appserver.io> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* @link https://github.com/appserver-io/rmi | ||
* @link http://www.appserver.io | ||
*/ | ||
class ApcuCacheFactory implements CacheFactoryInterface | ||
{ | ||
|
||
/** | ||
* Return's the new cache instance. | ||
* | ||
* @param array $configuration The cache configuration | ||
* | ||
* @return \Doctrine\Common\Cache\CacheProvider The cache instance | ||
*/ | ||
public static function get(array $configuration = array()) | ||
{ | ||
if (extension_loaded('apcu')) { | ||
return new ApcuCache(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...erIo/Appserver/PersistenceContainer/Doctrine/V2/CacheFactories/FilesystemCacheFactory.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
/** | ||
* AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\FilesystemCacheFactory | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* PHP version 5 | ||
* | ||
* @author Tim Wagner <tw@appserver.io> | ||
* @copyright 2015 TechDivision GmbH <info@appserver.io> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* @link https://github.com/appserver-io/rmi | ||
* @link http://www.appserver.io | ||
*/ | ||
|
||
namespace AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories; | ||
|
||
use Doctrine\Common\Cache\FilesystemCache; | ||
|
||
/** | ||
* The factory implementation for a FilesystemCache cache instance. | ||
* | ||
* @author Tim Wagner <tw@appserver.io> | ||
* @author Bernhard Wick <bw@appserver.io> | ||
* @copyright 2015 TechDivision GmbH <info@appserver.io> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* @link https://github.com/appserver-io/rmi | ||
* @link http://www.appserver.io | ||
*/ | ||
class FilesystemCacheFactory implements CacheFactoryInterface | ||
{ | ||
|
||
/** | ||
* Return's the new cache instance. | ||
* | ||
* @param array $configuration The cache configuration | ||
* | ||
* @return \Doctrine\Common\Cache\CacheProvider The cache instance | ||
*/ | ||
public static function get(array $configuration = array()) | ||
{ | ||
return new FilesystemCache($configuration[CacheKeys::DIRECTORY]); | ||
} | ||
} |