diff --git a/config/routes.php b/config/routes.php index 58d2ebd6..b73f2011 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,6 +1,5 @@ plugin('Burzum/FileStorage', function($routes) { $routes->fallbacks(); }); diff --git a/src/Storage/Listener/AbstractListener.php b/src/Storage/Listener/AbstractListener.php index d756c762..ceee6fe6 100644 --- a/src/Storage/Listener/AbstractListener.php +++ b/src/Storage/Listener/AbstractListener.php @@ -167,18 +167,6 @@ public function addDataProcessor($objectName, $config) */ protected function _checkEvent(EventInterface $event): bool { - $className = $this->_getAdapterClassFromConfig($event->getData('entity')['adapter']); - $classes = $this->_adapterClasses; - - if (!empty($classes) && !in_array($className, $classes)) { - $message = 'The listener `%s` doesn\'t allow the `%s` adapter class! Probably because it can\'t work with it.'; - throw new StorageException(sprintf( - $message, - static::class, - $className - )); - } - return $event->getSubject() instanceof Table && $this->_modelFilter($event); }