Skip to content

Commit

Permalink
Removed unused LinkFactory service
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Oct 30, 2024
1 parent 8c37e4e commit 4595443
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 162 deletions.
26 changes: 0 additions & 26 deletions src/ArchitectureBundle/Application/HttpLink/Link.php

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions src/ArchitectureBundle/Application/HttpLink/LinkInterface.php

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SixtyEightPublishers\ArchitectureBundle\Bridge\Nette\DI;

use Nette\Bridges\ApplicationDI\ApplicationExtension;
use Nette\DI\Compiler;
use Nette\DI\CompilerExtension;
use Nette\DI\Definitions\Reference;
Expand Down Expand Up @@ -57,10 +56,6 @@ public function loadConfiguration(): void
$this->setBundleParameter('extension_name', $this->name);
$this->setBundleParameter('default_event_store_name', $config->default_event_store_name ?? 'null');
$this->loadConfigurationDir(__DIR__ . '/definitions/architecture_bundle', false);

if (null !== $this->requireCompilerExtension(ApplicationExtension::class, false)) {
$this->loadConfigurationDir(__DIR__ . '/definitions/architecture_bundle/http_link');
}
}

public function provideMessageBusConfigurations(): iterable
Expand Down Expand Up @@ -102,19 +97,4 @@ public function resolveEventStoreForAggregateClassname(string $aggregateClassnam
$eventStoreName,
]);
}

/**
* @param array<string, mixed> $staticParameters
*/
public function registerHttpLink(string $name, string $destination, array $staticParameters = []): void
{
$linkFactoryDefinition = $this->getContainerBuilder()->getDefinition($this->prefix('application.http_link.link_factory.default'));
assert($linkFactoryDefinition instanceof ServiceDefinition);

$linkFactoryDefinition->addSetup('registerLink', [
$name,
$destination,
$staticParameters,
]);
}
}

This file was deleted.

44 changes: 0 additions & 44 deletions src/ArchitectureBundle/Bridge/Nette/HttpLink/LinkFactory.php

This file was deleted.

0 comments on commit 4595443

Please sign in to comment.