-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #30 from Ocramius/feature/zf3-compat
ZF3 compatibility, dropping PHP 5.x
- Loading branch information
Showing
18 changed files
with
275 additions
and
211 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,22 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file, in reverse chronological order by release. | ||
|
||
## 4.0.0 - 2016-06-04 | ||
|
||
### Added | ||
|
||
- Support for `zendframework/zend-mvc` 3.x | ||
|
||
### Deprecated | ||
|
||
- Nothing. | ||
|
||
### Removed | ||
|
||
- Support for PHP 5 has been dropped | ||
- Factories now follow the interfaces suggested by `zendframework/zend-servicemanager` 3.x | ||
|
||
### Fixed | ||
|
||
- Nothing. |
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
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 |
---|---|---|
|
@@ -18,9 +18,12 @@ | |
|
||
namespace OcraCachedViewResolver\Factory; | ||
|
||
use Interop\Container\ContainerInterface; | ||
use Interop\Container\Exception\ContainerException; | ||
use Interop\Container\Exception\NotFoundException; | ||
use OcraCachedViewResolver\Module; | ||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
use Zend\Cache\Exception\InvalidArgumentException; | ||
use Zend\Cache\Storage\StorageInterface; | ||
use Zend\Cache\StorageFactory; | ||
|
||
/** | ||
|
@@ -30,14 +33,18 @@ | |
* @author Marco Pivetta <[email protected]> | ||
* @license MIT | ||
*/ | ||
final class CacheFactory implements FactoryInterface | ||
final class CacheFactory | ||
{ | ||
/** | ||
* {@inheritDoc} | ||
* | ||
* @throws InvalidArgumentException | ||
* @throws ContainerException | ||
* @throws NotFoundException | ||
*/ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
public function __invoke(ContainerInterface $container) : StorageInterface | ||
{ | ||
$config = $serviceLocator->get('Config'); | ||
$config = $container->get('Config'); | ||
|
||
return StorageFactory::factory($config[Module::CONFIG][Module::CONFIG_CACHE_DEFINITION]); | ||
} | ||
|
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
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
Oops, something went wrong.