Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
chore: tidy up laminas 2.5 compatability code (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble authored Mar 8, 2024
1 parent 09f65da commit b07363c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions module/Permits/src/Permits/Data/Mapper/MapperManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

use Common\Data\Mapper\MapperInterface;
use Laminas\ServiceManager\AbstractPluginManager;
use Psr\Container\ContainerInterface;

class MapperManager extends AbstractPluginManager
{
protected $instanceOf = MapperInterface::class;

/**
* Validate a plugin (Laminas 3.0+)
* Validate a plugin
*
* Checks that the mapper is an instance of MapperInterface.
*
Expand All @@ -30,17 +29,4 @@ public function validate($plugin)
is_object($plugin) ? get_class($plugin) : gettype($plugin)
));
}

/**
* Validate a plugin (Laminas 2.5)
*
* Checks that the mapper is an instance of MapperInterface.
*
* @param mixed $plugin
* @throws \RuntimeException if invalid
*/
public function validatePlugin($plugin)
{
$this->validate($plugin);
}
}

0 comments on commit b07363c

Please sign in to comment.