Skip to content

Commit

Permalink
Update v2.x-automation-test for micro/plugin-locator
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksiiBulba committed Jul 6, 2024
1 parent a1516c3 commit 3c3bcfb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Facade/LocatorFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

use Micro\Plugin\Locator\Locator\LocatorFactoryInterface;

class LocatorFacade implements LocatorFacadeInterface
readonly class LocatorFacade implements LocatorFacadeInterface
{
public function __construct(
private readonly LocatorFactoryInterface $locatorFactory
private LocatorFactoryInterface $locatorFactory
) {
}

Expand Down
2 changes: 1 addition & 1 deletion Locator/LocatorCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Micro\Plugin\Locator\Locator;

/**
* @todo: Update this afrer implements micro/cache plugin.
* @todo: Update this after implements micro/cache plugin.
*/
class LocatorCached implements LocatorInterface
{
Expand Down
10 changes: 4 additions & 6 deletions Locator/LocatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@

use Micro\Framework\Kernel\KernelInterface;

class LocatorFactory implements LocatorFactoryInterface
readonly class LocatorFactory implements LocatorFactoryInterface
{
public function __construct(private readonly KernelInterface $kernel)
{
public function __construct(
private KernelInterface $kernel
) {
}

/**
* {@inheritDoc}
*/
public function create(): LocatorInterface
{
return new Locator($this->kernel);
Expand Down
3 changes: 0 additions & 3 deletions LocatorPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class LocatorPlugin implements DependencyProviderInterface
{
private ?KernelInterface $kernel = null;

/**
* {@inheritDoc}
*/
public function provideDependencies(Container $container): void
{
$container->register(LocatorFacadeInterface::class, function (
Expand Down
10 changes: 2 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"micro/kernel": "^2.0",
"symfony/finder": "^6.2 || ^6.3"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.34"
},
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"Micro\\Plugin\\Locator\\": "/"
Expand All @@ -25,10 +23,6 @@
]
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"minimum-stability": "dev"
}
}

0 comments on commit 3c3bcfb

Please sign in to comment.