Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliased Dhii\Cache\ContainerInterface to CacheContainerInterface #11

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/ServiceCacheAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Dhii\Di;

use Dhii\Cache\ContainerInterface;
use Dhii\Cache\ContainerInterface as CacheContainerInterface;
use Dhii\Util\String\StringableInterface as Stringable;
use Exception as RootException;
use InvalidArgumentException;
Expand All @@ -19,7 +19,7 @@ trait ServiceCacheAwareTrait
*
* @since [*next-version*]
*
* @var ContainerInterface|null
* @var CacheContainerInterface|null
*/
protected $serviceCache;

Expand All @@ -28,7 +28,7 @@ trait ServiceCacheAwareTrait
*
* @since [*next-version*]
*
* @return ContainerInterface|null The service cache.
* @return CacheContainerInterface|null The service cache.
*/
protected function _getServiceCache()
{
Expand All @@ -40,11 +40,11 @@ protected function _getServiceCache()
*
* @since [*next-version*]
*
* @param ContainerInterface|null $serviceCache The service cache.
* @param CacheContainerInterface|null $serviceCache The service cache.
*/
protected function _setServiceCache($serviceCache)
{
if ($serviceCache !== null && !($serviceCache instanceof ContainerInterface)) {
if ($serviceCache !== null && !($serviceCache instanceof CacheContainerInterface)) {
throw $this->_createInvalidArgumentException($this->__('Invalid cache'), null, null, $serviceCache);
}

Expand Down