Library that is meant to be used inside Eightshift Boilerplate and Eightshift Boilerplate Plugin libs via composer in order to be able to easily set up a modern development process.
New src/Helpers/ApiTrait.php helper for better API handling.
New recursiveArrayFind helper for finding items in multidimensional arrays recursively.
New casing helpers camelToSnakeCase, kebabToSnakeCase.
New getCurrentUrl helper for getting the current URL with query parameters.
New cleanUrlParams helper for cleaning URL parameters.
New project info helpers: getPluginVersion, getPluginName, getPluginTextDomain, getThemeVersion, getThemeName, getThemeTextDomain, getPluginDetails.
New constants for API handing in the src/Rest/Routes/AbstractRoute.php.
Fixed
Typo in block enqueue method for getBlockFrontentScriptHandle to getBlockFrontendScriptHandle method.
Removed
src/Blocks/AbstractBlocks.php method renderWrapperView is removed.
Config/AbstractConfigData.php is removed as it is no longer needed. Use helpers instead.
Config/ConfigDataInterface.php is removed as it is no longer needed.
LabelGeneratorTrait is removed as it is no longer needed.
All Enqueue methods no longer use manifest interface.
Exception/ComponentException.php is removed as it is no longer needed.
Exception/FailedToLoadView.php is removed as it is no longer needed.
Exception/FileMissing.php is removed as it is no longer needed.
src/Exception/InvalidCallback.php is removed as it is no longer needed.
src/Exception/InvalidNouns.php is removed as it is no longer needed.
src/Exception/InvalidService.php is removed as it is no longer needed.
src/Exception/PluginActivationFailure.php is removed as it is no longer needed.
Exception/InvalidBlock.php methods: missingBlocksException, missingComponentsException, missingNameException, missingComponentNameException, missingVariationNameException, missingViewException, missingRenderViewException, missingSettingsManifestException, missingWrapperManifestException, missingComponentManifestException, missingWrapperViewException, missingNamespaceException, missingSettingsKeyException, wrongFunctionUsedException, missingFileException, is removed as it is no longer needed.
outputCssVariablesGlobal method no longer requires parameters.
outputCssVariables method is not longer supporting globalManifest parameter.
all methods from src/Helpers/ErrorLoggerTrait.php trait are removed.
All manifest classes are removed, src/Manifest/AbstractManifest.php, src/Manifest/ManifestExample.php, src/Manifest/ManifestInterface.php.
Deprecated
Helpers>Components class is deprecated and will be removed in the next major release. Use Helpers>Blocks class instead.
Helpers>Components>renderPartial method is deprecated and will be removed in the next major release. Use Helpers>Helpers>render method instead.
Helpers>Components>getManifest method is deprecated and will be removed in the next major release. Use Helpers>Helpers>getManifestByDir method instead.
[8.0.0] - TBA
Changed
manifestCache
interface for fetching manifest data.manifestCache
interface for fetching manifest data.Added
Exception/InvalidBlock.php
method:missingItemException
.src/Exception/InvalidManifest.php
methods:missingManifestKeyException
,emptyOrErrorManifestException
,notAllowedManifestPathException
,notAllowedManifestPathItemException
,missingCacheTopItemException
,missingCacheSubItemException
.src/Exception/InvalidPath.php
method:missingDirectoryException
,missingFileException
,missingFileWithExampleException
,wrongOrNotAllowedParentPathException
.src/Helpers/ApiTrait.php
helper for better API handling.recursiveArrayFind
helper for finding items in multidimensional arrays recursively.camelToSnakeCase
,kebabToSnakeCase
.getCurrentUrl
helper for getting the current URL with query parameters.cleanUrlParams
helper for cleaning URL parameters.getPluginVersion
,getPluginName
,getPluginTextDomain
,getThemeVersion
,getThemeName
,getThemeTextDomain
,getPluginDetails
.src/Rest/Routes/AbstractRoute.php
.Fixed
getBlockFrontentScriptHandle
togetBlockFrontendScriptHandle
method.Removed
src/Blocks/AbstractBlocks.php
methodrenderWrapperView
is removed.Config/AbstractConfigData.php
is removed as it is no longer needed. Use helpers instead.Config/ConfigDataInterface.php
is removed as it is no longer needed.LabelGeneratorTrait
is removed as it is no longer needed.manifest
interface.Exception/ComponentException.php
is removed as it is no longer needed.Exception/FailedToLoadView.php
is removed as it is no longer needed.Exception/FileMissing.php
is removed as it is no longer needed.src/Exception/InvalidCallback.php
is removed as it is no longer needed.src/Exception/InvalidNouns.php
is removed as it is no longer needed.src/Exception/InvalidService.php
is removed as it is no longer needed.src/Exception/PluginActivationFailure.php
is removed as it is no longer needed.Exception/InvalidBlock.php
methods:missingBlocksException
,missingComponentsException
,missingNameException
,missingComponentNameException
,missingVariationNameException
,missingViewException
,missingRenderViewException
,missingSettingsManifestException
,missingWrapperManifestException
,missingComponentManifestException
,missingWrapperViewException
,missingNamespaceException
,missingSettingsKeyException
,wrongFunctionUsedException
,missingFileException
, is removed as it is no longer needed.src/Exception/InvalidManifest.php
method:missingManifestItemException
.src/Exception/InvalidPath.php
method:fromUri
.outputCssVariablesGlobal
method no longer requires parameters.outputCssVariables
method is not longer supportingglobalManifest
parameter.src/Helpers/ErrorLoggerTrait.php
trait are removed.src/Manifest/AbstractManifest.php
,src/Manifest/ManifestExample.php
,src/Manifest/ManifestInterface.php
.Deprecated
Helpers>Components
class is deprecated and will be removed in the next major release. UseHelpers>Blocks
class instead.Helpers>Components>renderPartial
method is deprecated and will be removed in the next major release. UseHelpers>Helpers>render
method instead.Helpers>Components>getManifest
method is deprecated and will be removed in the next major release. UseHelpers>Helpers>getManifestByDir
method instead.TODO