fix calendar css, take 2. (#213)
[openemr.git] / interface / modules / zend_modules / library / Zend / Config / WriterPluginManager.php
blob9b031ffabba2cf39c4c369fc6b24c92011480782
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Config;
12 use Zend\ServiceManager\AbstractPluginManager;
14 class WriterPluginManager extends AbstractPluginManager
16 protected $invokableClasses = array(
17 'ini' => 'Zend\Config\Writer\Ini',
18 'json' => 'Zend\Config\Writer\Json',
19 'php' => 'Zend\Config\Writer\PhpArray',
20 'yaml' => 'Zend\Config\Writer\Yaml',
21 'xml' => 'Zend\Config\Writer\Xml',
24 public function validatePlugin($plugin)
26 if ($plugin instanceof Writer\AbstractWriter) {
27 return;
30 $type = is_object($plugin) ? get_class($plugin) : gettype($plugin);
32 throw new Exception\InvalidArgumentException(
33 "Plugin of type {$type} is invalid. Plugin must extend ". __NAMESPACE__ . '\Writer\AbstractWriter'