Skip to content
Closed
Changes from all 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
23 changes: 23 additions & 0 deletions src/ContainerWordPress/Contracts/Provider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php declare(strict_types=1);

namespace StellarWP\Foundation\ContainerWordPress\Contracts;

use Adbar\Dot;
use StellarWP\Foundation\Container\Contracts\Container as FoundationContainer;
use StellarWP\Foundation\Container\Contracts\Provider as FoundationProvider;
use StellarWP\Foundation\ContainerWordPress\ContainerAdapter;

/**
* Providers should extend this abstract in order to have
* access to the container instance to register their bindings.
*/
abstract class Provider extends FoundationProvider
{
public function __construct(
/** @var Container|ContainerAdapter $container */
protected readonly FoundationContainer $container,
/** @var Dot<array-key, mixed> */
protected readonly Dot $config
) {
}
}
Loading