Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php')
-rw-r--r--vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php75
1 files changed, 0 insertions, 75 deletions
diff --git a/vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php b/vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php
deleted file mode 100644
index f852cab..0000000
--- a/vendor/zendframework/zend-cache/src/Storage/AdapterPluginManager.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?php
-/**
- * Zend Framework (http://framework.zend.com/)
- *
- * @link http://github.com/zendframework/zf2 for the canonical source repository
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-namespace Zend\Cache\Storage;
-
-use Zend\Cache\Exception;
-use Zend\ServiceManager\AbstractPluginManager;
-
-/**
- * Plugin manager implementation for cache storage adapters
- *
- * Enforces that adapters retrieved are instances of
- * StorageInterface. Additionally, it registers a number of default
- * adapters available.
- */
-class AdapterPluginManager extends AbstractPluginManager
-{
- /**
- * Default set of adapters
- *
- * @var array
- */
- protected $invokableClasses = array(
- 'apc' => 'Zend\Cache\Storage\Adapter\Apc',
- 'blackhole' => 'Zend\Cache\Storage\Adapter\BlackHole',
- 'dba' => 'Zend\Cache\Storage\Adapter\Dba',
- 'filesystem' => 'Zend\Cache\Storage\Adapter\Filesystem',
- 'memcache' => 'Zend\Cache\Storage\Adapter\Memcache',
- 'memcached' => 'Zend\Cache\Storage\Adapter\Memcached',
- 'memory' => 'Zend\Cache\Storage\Adapter\Memory',
- 'mongodb' => 'Zend\Cache\Storage\Adapter\MongoDb',
- 'redis' => 'Zend\Cache\Storage\Adapter\Redis',
- 'session' => 'Zend\Cache\Storage\Adapter\Session',
- 'xcache' => 'Zend\Cache\Storage\Adapter\XCache',
- 'wincache' => 'Zend\Cache\Storage\Adapter\WinCache',
- 'zendserverdisk' => 'Zend\Cache\Storage\Adapter\ZendServerDisk',
- 'zendservershm' => 'Zend\Cache\Storage\Adapter\ZendServerShm',
- );
-
- /**
- * Do not share by default
- *
- * @var array
- */
- protected $shareByDefault = false;
-
- /**
- * Validate the plugin
- *
- * Checks that the adapter loaded is an instance of StorageInterface.
- *
- * @param mixed $plugin
- * @return void
- * @throws Exception\RuntimeException if invalid
- */
- public function validatePlugin($plugin)
- {
- if ($plugin instanceof StorageInterface) {
- // we're okay
- return;
- }
-
- throw new Exception\RuntimeException(sprintf(
- 'Plugin of type %s is invalid; must implement %s\StorageInterface',
- (is_object($plugin) ? get_class($plugin) : gettype($plugin)),
- __NAMESPACE__
- ));
- }
-}