Skip to content

Commit

Permalink
Merge pull request #170 from boesing/qa/remove-deprecated-factories
Browse files Browse the repository at this point in the history
Remove deprecated factories
  • Loading branch information
boesing authored Feb 15, 2023
2 parents dd29f8f + 4ff1755 commit a3f3c32
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 168 deletions.
53 changes: 0 additions & 53 deletions src/AbstractFactoryInterface.php

This file was deleted.

41 changes: 0 additions & 41 deletions src/DelegatorFactoryInterface.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Laminas\ServiceManager\Exception;

use InvalidArgumentException as SplInvalidArgumentException;
use Laminas\ServiceManager\AbstractFactoryInterface;
use Laminas\ServiceManager\Factory\AbstractFactoryInterface;
use Laminas\ServiceManager\Initializer\InitializerInterface;

use function gettype;
Expand Down
36 changes: 0 additions & 36 deletions src/FactoryInterface.php

This file was deleted.

35 changes: 0 additions & 35 deletions src/InitializerInterface.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -976,13 +976,13 @@ private function assertCallableDelegatorFactory($delegatorFactory): void
. ' which does not exist; please provide a valid function name or class name resolving'
. ' to an implementation of %s',
$delegatorFactory,
DelegatorFactoryInterface::class
Factory\DelegatorFactoryInterface::class
));
}
throw new ServiceNotCreatedException(sprintf(
'A non-callable delegator, "%s", was provided; expected a callable or instance of "%s"',
is_object($delegatorFactory) ? $delegatorFactory::class : gettype($delegatorFactory),
DelegatorFactoryInterface::class
Factory\DelegatorFactoryInterface::class
));
}
}

0 comments on commit a3f3c32

Please sign in to comment.