From 3a215d98bc620457b1cf1b376809372ffeb13bfd Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Sat, 19 Nov 2022 15:09:33 +0000 Subject: [PATCH] Match method definitions with core --- src/Fields/BlueprintRepository.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Fields/BlueprintRepository.php b/src/Fields/BlueprintRepository.php index 72035a4a..b285f85c 100644 --- a/src/Fields/BlueprintRepository.php +++ b/src/Fields/BlueprintRepository.php @@ -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 { @@ -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); @@ -105,7 +103,7 @@ private function makeBlueprintFromModel($model) }); } - private function getNamespaceAndHandle($blueprint) + protected function getNamespaceAndHandle($blueprint) { $blueprint = str_replace('/', '.', $blueprint); $parts = explode('.', $blueprint);