Skip to content

Commit

Permalink
Merge pull request #4 from CakeDC/feature/merge3x
Browse files Browse the repository at this point in the history
Feature/merge3x
  • Loading branch information
arusinowski authored Nov 30, 2023
2 parents fe56238 + 0f70b37 commit 74a06a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions config/routes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
use Cake\Routing\Router;

/** @var \Cake\Routing\RouteBuilder $routes */
$routes->plugin('Burzum/FileStorage', function($routes) {
$routes->fallbacks();
});
12 changes: 0 additions & 12 deletions src/Storage/Listener/AbstractListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 74a06a0

Please sign in to comment.