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

chore: Tidy up laminas 2 3 compatability vol 3761 #86

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}
Loading