Skip to content
Merged
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
12 changes: 5 additions & 7 deletions src/Fields/BlueprintRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@

class BlueprintRepository extends StacheRepository
{
private const BLINK_FOUND = 'blueprints.found';

private const BLINK_FROM_FILE = 'blueprints.from-file';

private const BLINK_NAMESPACE_PATHS = 'blueprints.paths-in-namespace';
protected const BLINK_FOUND = 'blueprints.found';
protected const BLINK_FROM_FILE = 'blueprints.from-file';
protected const BLINK_NAMESPACE_PATHS = 'blueprints.paths-in-namespace';

public function find($blueprint): ?Blueprint
{
Expand Down Expand Up @@ -80,7 +78,7 @@ public function in(string $namespace)
->keyBy->handle();
}

private function filesIn($namespace)
protected function filesIn($namespace)
{
return Blink::store(self::BLINK_NAMESPACE_PATHS)->once($namespace ?? 'none', function () use ($namespace) {
$namespace = str_replace('/', '.', $namespace);
Expand All @@ -105,7 +103,7 @@ private function makeBlueprintFromModel($model)
});
}

private function getNamespaceAndHandle($blueprint)
protected function getNamespaceAndHandle($blueprint)
{
$blueprint = str_replace('/', '.', $blueprint);
$parts = explode('.', $blueprint);
Expand Down