Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ServiceManager inheritance for AbstractPluginManager #179

Merged
merged 17 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from 14 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
6 changes: 0 additions & 6 deletions .laminas-ci.json

This file was deleted.

4 changes: 2 additions & 2 deletions benchmarks/BenchAsset/AbstractFactoryFoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class AbstractFactoryFoo implements AbstractFactoryInterface
{
/** {@inheritDoc} */
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): mixed
{
if ($requestedName === 'foo') {
return new Foo($options);
Expand All @@ -19,7 +19,7 @@ public function __invoke(ContainerInterface $container, $requestedName, ?array $
}

/** {@inheritDoc} */
public function canCreate(ContainerInterface $container, $requestedName)
public function canCreate(ContainerInterface $container, string $requestedName): bool
{
return $requestedName === 'foo';
}
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/BenchAsset/FactoryFoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class FactoryFoo implements FactoryInterface
{
/** {@inheritDoc} */
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): mixed
{
return new Foo($options);
}
Expand Down
27 changes: 14 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@
},
"config": {
"platform": {
"php": "8.0.99"
"php": "8.1.99"
},
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"composer/package-versions-deprecated": true,
"laminas/laminas-dependency-plugin": true
"composer/package-versions-deprecated": true
}
},
"require": {
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0",
"brick/varexporter": "^0.3.8",
"laminas/laminas-stdlib": "^3.2.1",
"psr/container": "^1.0"
"psr/container": "^1.1"
},
"extra": {
"laminas": {
Expand All @@ -48,16 +47,15 @@
"composer/package-versions-deprecated": "^1.11.99.5",
"laminas/laminas-cli": "^1.8",
"laminas/laminas-coding-standard": "~2.5.0",
"laminas/laminas-container-config-test": "^0.8",
"laminas/laminas-dependency-plugin": "^2.2",
"laminas/laminas-container-config-test": "dev-qa/service-manager-v4",
"lctrs/psalm-psr-container-plugin": "^1.9",
"mikey179/vfsstream": "^1.6.11@alpha",
"ocramius/proxy-manager": "^2.14.1",
"friendsofphp/proxy-manager-lts": "^1",
boesing marked this conversation as resolved.
Show resolved Hide resolved
"phpbench/phpbench": "^1.2.7",
"phpunit/phpunit": "^9.5.26",
"psalm/plugin-phpunit": "^0.18.0",
"symfony/console": "^6.0",
"vimeo/psalm": "^5.0.0"
"vimeo/psalm": "5.x-dev"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • needs to be switched back once psalm releases the next minor

},
"provide": {
"psr/container-implementation": "^1.0"
Expand All @@ -68,17 +66,14 @@
},
"suggest": {
"laminas/laminas-cli": "To consume CLI commands provided by this component",
"ocramius/proxy-manager": "ProxyManager ^2.1.1 to handle lazy initialization of services"
"friendsofphp/proxy-manager-lts": "To handle lazy initialization of services"
},
"autoload": {
"psr-4": {
"Laminas\\ServiceManager\\": "src/"
}
},
"autoload-dev": {
"files": [
"test/autoload.php"
],
"psr-4": {
"LaminasTest\\ServiceManager\\": "test/",
"LaminasBench\\ServiceManager\\": "benchmarks/"
Expand All @@ -99,5 +94,11 @@
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
"static-analysis" : "psalm --shepherd --stats"
},
"repositories": {
"container-integration-tests": {
"type": "git",
"url": "https://github.com/boesing/laminas-container-config-test"
}
}
}
Loading