HydratorPluginManager.php in Zircon Profile 8.0
File
vendor/zendframework/zend-hydrator/src/HydratorPluginManager.php
View source
<?php
namespace Zend\Hydrator;
use Zend\ServiceManager\AbstractPluginManager;
class HydratorPluginManager extends AbstractPluginManager {
protected $shareByDefault = false;
protected $aliases = [
'delegatinghydrator' => 'Zend\\Hydrator\\DelegatingHydrator',
];
protected $invokableClasses = [
'arrayserializable' => 'Zend\\Hydrator\\ArraySerializable',
'classmethods' => 'Zend\\Hydrator\\ClassMethods',
'objectproperty' => 'Zend\\Hydrator\\ObjectProperty',
'reflection' => 'Zend\\Hydrator\\Reflection',
];
protected $factories = [
'Zend\\Hydrator\\DelegatingHydrator' => 'Zend\\Hydrator\\DelegatingHydratorFactory',
];
public function validatePlugin($plugin) {
if ($plugin instanceof HydratorInterface) {
return;
}
throw new Exception\RuntimeException(sprintf('Plugin of type %s is invalid; must implement Zend\\Hydrator\\HydratorInterface', is_object($plugin) ? get_class($plugin) : gettype($plugin)));
}
}