Skip to content

Commit

Permalink
Remove unnecessary GetServiceTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Dec 2, 2024
1 parent 1b73f94 commit bd8264b
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
use Psr\Container\ContainerExceptionInterface as ContainerException;
use Psr\Container\ContainerInterface;
use VuFind\Service\GetServiceTrait;

/**
* Turnstile controller factory.
Expand All @@ -46,8 +45,6 @@
*/
class TurnstileControllerFactory extends AbstractBaseFactory
{
use GetServiceTrait;

/**
* Create an object
*
Expand All @@ -70,8 +67,6 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$this->serviceLocator = $container;

$yamlReader = $container->get(\VuFind\Config\YamlReader::class);
$config = $yamlReader->get('RateLimiter.yaml');

Expand Down

0 comments on commit bd8264b

Please sign in to comment.