Skip to content

Commit 4d9a339

Browse files
committed
updating cache and helpers
1 parent 7c848d4 commit 4d9a339

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+107
-886
lines changed

src/AdminMenus/AdminMenuCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ public function __invoke(array $args, array $assocArgs)
170170
}
171171

172172
// Output final class to new file/folder and finish.
173-
$class->outputWrite(Helpers::getProjectPaths('srcDestination', 'AdminMenus'), "{$className}.php", $assocArgs);
173+
$class->outputWrite(Helpers::getProjectPaths('src', 'AdminMenus'), "{$className}.php", $assocArgs);
174174
}
175175
}

src/AdminMenus/AdminPatternsHeaderFooterMenu/AdminPatternsHeaderFooterMenuCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ public function __invoke(array $args, array $assocArgs)
139139
}
140140

141141
// Output final class to new file/folder and finish.
142-
$class->outputWrite(Helpers::getProjectPaths('srcDestination', 'AdminMenus'), "{$className}.php", $assocArgs);
142+
$class->outputWrite(Helpers::getProjectPaths('src', 'AdminMenus'), "{$className}.php", $assocArgs);
143143
}
144144
}

src/AdminMenus/AdminPatternsMenu/AdminPatternsMenuCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@ public function __invoke(array $args, array $assocArgs)
153153
}
154154

155155
// Output final class to new file/folder and finish.
156-
$class->outputWrite(Helpers::getProjectPaths('srcDestination', 'AdminMenus'), "{$className}.php", $assocArgs);
156+
$class->outputWrite(Helpers::getProjectPaths('src', 'AdminMenus'), "{$className}.php", $assocArgs);
157157
}
158158
}

src/AdminMenus/AdminSubMenuCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ public function __invoke(array $args, array $assocArgs)
150150
->searchReplaceString($this->getArgTemplate('capability'), $capability)
151151
->searchReplaceString($this->getArgTemplate('menu_slug'), $menuSlug)
152152
->searchReplaceString($this->getArgTemplate('view_component'), $viewComponent)
153-
->outputWrite(Helpers::getProjectPaths('srcDestination', 'AdminMenus'), "{$className}.php", $assocArgs);
153+
->outputWrite(Helpers::getProjectPaths('src', 'AdminMenus'), "{$className}.php", $assocArgs);
154154
}
155155
}

src/AdminMenus/AdminThemeOptionsMenu/AdminThemeOptionsMenuCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@ public function __invoke(array $args, array $assocArgs)
153153
}
154154

155155
// Output final class to new file/folder and finish.
156-
$class->outputWrite(Helpers::getProjectPaths('srcDestination', 'AdminMenus'), "{$className}.php", $assocArgs);
156+
$class->outputWrite(Helpers::getProjectPaths('src', 'AdminMenus'), "{$className}.php", $assocArgs);
157157
}
158158
}

src/AnalyticsGdpr/AnalyticsGdprCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ public function __invoke(array $args, array $assocArgs)
8181
$this->getExampleTemplate(__DIR__, $className)
8282
->renameClassName($className)
8383
->renameGlobals($assocArgs)
84-
->outputWrite(Helpers::getProjectPaths('srcDestination', 'AnalyticsGdpr'), "{$className}.php", $assocArgs);
84+
->outputWrite(Helpers::getProjectPaths('src', 'AnalyticsGdpr'), "{$className}.php", $assocArgs);
8585
}
8686
}

src/BlockPatterns/BlockPatternCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function __invoke(array $args, array $assocArgs)
137137
->searchReplaceString($this->getArgTemplate('name'), $name)
138138
->searchReplaceString($this->getArgTemplate('content'), $content)
139139
->searchReplaceString($this->getArgTemplate('description'), $description)
140-
->outputWrite(Helpers::getProjectPaths('srcDestination', 'BlockPatterns'), "{$className}.php", $assocArgs);
140+
->outputWrite(Helpers::getProjectPaths('src', 'BlockPatterns'), "{$className}.php", $assocArgs);
141141
}
142142

143143
/**

src/Blocks/BlocksCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ public function __invoke(array $args, array $assocArgs)
7878
// Read the template contents, and replace the placeholders with provided variables.
7979
$class->renameClassName($className)
8080
->renameGlobals($assocArgs)
81-
->outputWrite(Helpers::getProjectPaths('blocksDestination'), "{$className}.php", $assocArgs);
81+
->outputWrite(Helpers::getProjectPaths('blocksRoot'), "{$className}.php", $assocArgs);
8282
}
8383
}

src/Cache/AbstractManifestCache.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function getCacheBuilder(): array
130130
return [
131131
self::TYPE_BLOCKS => [
132132
self::SETTINGS_KEY => [
133-
'path' => 'blocksDestination',
133+
'path' => 'blocksRoot',
134134
'multiple' => false,
135135
'validation' => [
136136
'$schema',
@@ -182,7 +182,7 @@ protected function getCacheBuilder(): array
182182
],
183183
],
184184
self::BLOCKS_KEY => [
185-
'path' => 'blocksDestinationCustom',
185+
'path' => 'blocks',
186186
'id' => 'blockName',
187187
'multiple' => true,
188188
'autoset' => [
@@ -212,7 +212,7 @@ protected function getCacheBuilder(): array
212212
],
213213
],
214214
self::COMPONENTS_KEY => [
215-
'path' => 'blocksDestinationComponents',
215+
'path' => 'components',
216216
'multiple' => true,
217217
'id' => 'componentName',
218218
'validation' => [
@@ -222,7 +222,7 @@ protected function getCacheBuilder(): array
222222
],
223223
],
224224
self::VARIATIONS_KEY => [
225-
'path' => 'blocksDestinationVariations',
225+
'path' => 'variations',
226226
'id' => 'name',
227227
'multiple' => true,
228228
'validation' => [
@@ -235,7 +235,7 @@ protected function getCacheBuilder(): array
235235
],
236236
],
237237
self::WRAPPER_KEY => [
238-
'path' => 'blocksDestinationWrapper',
238+
'path' => 'wrapper',
239239
'validation' => [
240240
'$schema',
241241
'title',

src/Cache/ManifestCacheCli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ public function __invoke(array $args, array $assocArgs)
7979
$this->getExampleTemplate(__DIR__, $className)
8080
->renameClassName($className)
8181
->renameGlobals($assocArgs)
82-
->outputWrite(Helpers::getProjectPaths('srcDestination', 'Cache'), "{$className}.php", $assocArgs);
82+
->outputWrite(Helpers::getProjectPaths('src', 'Cache'), "{$className}.php", $assocArgs);
8383
}
8484
}

0 commit comments

Comments
 (0)