-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement more robust caching system (#387)
- Loading branch information
Showing
43 changed files
with
913 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Cspray\AnnotatedContainer\Bootstrap; | ||
|
||
use Cspray\AnnotatedContainer\ArchitecturalDecisionRecords\SingleEntrypointDefinitionProvider; | ||
use Cspray\AnnotatedContainer\Definition\Cache\ContainerDefinitionCache; | ||
use Cspray\AnnotatedContainer\StaticAnalysis\DefinitionProvider; | ||
|
||
final class CacheAwareBootstrappingConfiguration implements BootstrappingConfiguration { | ||
|
||
public function __construct( | ||
private readonly BootstrappingConfiguration $configuration, | ||
private readonly ContainerDefinitionCache $cache, | ||
) { | ||
} | ||
|
||
public function scanDirectories() : array { | ||
return $this->configuration->scanDirectories(); | ||
} | ||
|
||
public function cache() : ?ContainerDefinitionCache { | ||
return $this->cache; | ||
} | ||
|
||
#[SingleEntrypointDefinitionProvider] | ||
public function containerDefinitionProvider() : ?DefinitionProvider { | ||
return $this->configuration->containerDefinitionProvider(); | ||
} | ||
|
||
public function parameterStores() : array { | ||
return $this->configuration->parameterStores(); | ||
} | ||
} |
Oops, something went wrong.