/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
$field = end($path) === 'fields';
foreach ($items as $key => &$item) {
// Set name for nested field.
if ($field && isset($item['type'])) {
$item['name'] = $key;
}
// Handle special instructions in the form.
if (!empty($key) && ($key[0] === '@' || $key[strlen($key) - 1] === '@')) {
$list = explode('-', trim($key, '@'), 2);
$action = array_shift($list);
$property = array_shift($list);
switch ($action) {
case 'unset':
unset($items[$key]);
if (empty($items)) {
return null;
}
Arguments
-
"Trying to access array offset on int"
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
$field = end($path) === 'fields';
foreach ($items as $key => &$item) {
// Set name for nested field.
if ($field && isset($item['type'])) {
$item['name'] = $key;
}
// Handle special instructions in the form.
if (!empty($key) && ($key[0] === '@' || $key[strlen($key) - 1] === '@')) {
$list = explode('-', trim($key, '@'), 2);
$action = array_shift($list);
$property = array_shift($list);
switch ($action) {
case 'unset':
unset($items[$key]);
if (empty($items)) {
return null;
}
Arguments
2
"Trying to access array offset on int"
"/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php"
374
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
array:6 [
0 => "form"
1 => "fields"
2 => "summary"
3 => "fields"
4 => "summary.enabled"
5 => "options"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
array:5 [
0 => "form"
1 => "fields"
2 => "summary"
3 => "fields"
4 => "summary.enabled"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:4 [
"summary.enabled" => array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
"summary.size" => array:6 [
"type" => "text"
"size" => "x-small"
"append" => "PLUGIN_ADMIN.CHARACTERS"
"label" => "PLUGIN_ADMIN.SUMMARY_SIZE"
"help" => "PLUGIN_ADMIN.SUMMARY_SIZE_HELP"
"validate" => array:3 [
"type" => "int"
"min" => 0
"max" => 65536
]
]
"summary.format" => array:6 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.FORMAT"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.FORMAT_HELP"
"highlight" => "short"
"options" => array:2 [
"short" => "PLUGIN_ADMIN.SHORT"
"long" => "PLUGIN_ADMIN.LONG"
]
]
"summary.delimiter" => array:4 [
"type" => "text"
"size" => "x-small"
"label" => "PLUGIN_ADMIN.DELIMITER"
"help" => "PLUGIN_ADMIN.DELIMITER_HELP"
]
]
array:4 [
0 => "form"
1 => "fields"
2 => "summary"
3 => "fields"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.PAGE_SUMMARY"
"underline" => true
"fields" => array:4 [
"summary.enabled" => array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
"summary.size" => array:6 [
"type" => "text"
"size" => "x-small"
"append" => "PLUGIN_ADMIN.CHARACTERS"
"label" => "PLUGIN_ADMIN.SUMMARY_SIZE"
"help" => "PLUGIN_ADMIN.SUMMARY_SIZE_HELP"
"validate" => array:3 [
"type" => "int"
"min" => 0
"max" => 65536
]
]
"summary.format" => array:6 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.FORMAT"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.FORMAT_HELP"
"highlight" => "short"
"options" => array:2 [
"short" => "PLUGIN_ADMIN.SHORT"
"long" => "PLUGIN_ADMIN.LONG"
]
]
"summary.delimiter" => array:4 [
"type" => "text"
"size" => "x-small"
"label" => "PLUGIN_ADMIN.DELIMITER"
"help" => "PLUGIN_ADMIN.DELIMITER_HELP"
]
]
"name" => "summary"
]
array:3 [
0 => "form"
1 => "fields"
2 => "summary"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:4 [
"content" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.DEFAULTS"
"underline" => true
"fields" => array:4 [
"title" => array:6 [
"type" => "text"
"label" => "PLUGIN_ADMIN.SITE_TITLE"
"size" => "large"
"placeholder" => "PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER"
"help" => "PLUGIN_ADMIN.SITE_TITLE_HELP"
"name" => "title"
]
"author.name" => array:5 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_AUTHOR"
"help" => "PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP"
"name" => "author.name"
]
"author.email" => array:6 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_EMAIL"
"help" => "PLUGIN_ADMIN.DEFAULT_EMAIL_HELP"
"validate" => array:1 [
"type" => "email"
]
"name" => "author.email"
]
"taxonomies" => array:7 [
"type" => "selectize"
"size" => "large"
"label" => "PLUGIN_ADMIN.TAXONOMY_TYPES"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.TAXONOMY_TYPES_HELP"
"validate" => array:1 [
"type" => "commalist"
]
"name" => "taxonomies"
]
]
"name" => "content"
]
"summary" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.PAGE_SUMMARY"
"underline" => true
"fields" => array:4 [
"summary.enabled" => array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
"summary.size" => array:6 [
"type" => "text"
"size" => "x-small"
"append" => "PLUGIN_ADMIN.CHARACTERS"
"label" => "PLUGIN_ADMIN.SUMMARY_SIZE"
"help" => "PLUGIN_ADMIN.SUMMARY_SIZE_HELP"
"validate" => array:3 [
"type" => "int"
"min" => 0
"max" => 65536
]
]
"summary.format" => array:6 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.FORMAT"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.FORMAT_HELP"
"highlight" => "short"
"options" => array:2 [
"short" => "PLUGIN_ADMIN.SHORT"
"long" => "PLUGIN_ADMIN.LONG"
]
]
"summary.delimiter" => array:4 [
"type" => "text"
"size" => "x-small"
"label" => "PLUGIN_ADMIN.DELIMITER"
"help" => "PLUGIN_ADMIN.DELIMITER_HELP"
]
]
"name" => "summary"
]
"metadata" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.METADATA"
"underline" => true
"fields" => array:1 [
"metadata" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.METADATA"
"help" => "PLUGIN_ADMIN.METADATA_HELP"
"placeholder_key" => "PLUGIN_ADMIN.METADATA_KEY"
"placeholder_value" => "PLUGIN_ADMIN.METADATA_VALUE"
]
]
]
"routes" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.REDIRECTS_AND_ROUTES"
"underline" => true
"fields" => array:2 [
"redirects" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS"
"help" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE"
]
"routes" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_ROUTES"
"help" => "PLUGIN_ADMIN.CUSTOM_ROUTES_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE"
]
]
]
]
array:2 [
0 => "form"
1 => "fields"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
break;
default:
$this->dynamic[implode('/', $path)][$property] = ['action' => $action, 'params' => $item];
}
} elseif (is_array($item)) {
// Recursively initialize form.
$newPath = array_merge($path, [$key]);
$location = $this->deepInit($item, $newPath);
if ($location) {
$order[$key] = $location;
} elseif ($location === null) {
unset($items[$key]);
}
}
}
if ($order) {
// Reorder fields if needed.
Arguments
array:2 [
"validation" => "loose"
"fields" => array:4 [
"content" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.DEFAULTS"
"underline" => true
"fields" => array:4 [
"title" => array:6 [
"type" => "text"
"label" => "PLUGIN_ADMIN.SITE_TITLE"
"size" => "large"
"placeholder" => "PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER"
"help" => "PLUGIN_ADMIN.SITE_TITLE_HELP"
"name" => "title"
]
"author.name" => array:5 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_AUTHOR"
"help" => "PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP"
"name" => "author.name"
]
"author.email" => array:6 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_EMAIL"
"help" => "PLUGIN_ADMIN.DEFAULT_EMAIL_HELP"
"validate" => array:1 [
"type" => "email"
]
"name" => "author.email"
]
"taxonomies" => array:7 [
"type" => "selectize"
"size" => "large"
"label" => "PLUGIN_ADMIN.TAXONOMY_TYPES"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.TAXONOMY_TYPES_HELP"
"validate" => array:1 [
"type" => "commalist"
]
"name" => "taxonomies"
]
]
"name" => "content"
]
"summary" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.PAGE_SUMMARY"
"underline" => true
"fields" => array:4 [
"summary.enabled" => array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
"summary.size" => array:6 [
"type" => "text"
"size" => "x-small"
"append" => "PLUGIN_ADMIN.CHARACTERS"
"label" => "PLUGIN_ADMIN.SUMMARY_SIZE"
"help" => "PLUGIN_ADMIN.SUMMARY_SIZE_HELP"
"validate" => array:3 [
"type" => "int"
"min" => 0
"max" => 65536
]
]
"summary.format" => array:6 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.FORMAT"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.FORMAT_HELP"
"highlight" => "short"
"options" => array:2 [
"short" => "PLUGIN_ADMIN.SHORT"
"long" => "PLUGIN_ADMIN.LONG"
]
]
"summary.delimiter" => array:4 [
"type" => "text"
"size" => "x-small"
"label" => "PLUGIN_ADMIN.DELIMITER"
"help" => "PLUGIN_ADMIN.DELIMITER_HELP"
]
]
"name" => "summary"
]
"metadata" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.METADATA"
"underline" => true
"fields" => array:1 [
"metadata" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.METADATA"
"help" => "PLUGIN_ADMIN.METADATA_HELP"
"placeholder_key" => "PLUGIN_ADMIN.METADATA_KEY"
"placeholder_value" => "PLUGIN_ADMIN.METADATA_VALUE"
]
]
]
"routes" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.REDIRECTS_AND_ROUTES"
"underline" => true
"fields" => array:2 [
"redirects" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS"
"help" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE"
]
"routes" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_ROUTES"
"help" => "PLUGIN_ADMIN.CUSTOM_ROUTES_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE"
]
]
]
]
]
array:1 [
0 => "form"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/rockettheme/toolbox/Blueprints/src/BlueprintForm.php
$this->items = (array) array_shift($data);
foreach ($data as $content) {
$this->extend($content, true);
}
}
// Import blueprints.
$this->deepInit($this->items);
return $this;
}
/**
* Initialize blueprints with its dynamic fields.
*
* @return $this
*/
public function init()
Arguments
array:2 [
"title" => "PLUGIN_ADMIN.SITE"
"form" => array:2 [
"validation" => "loose"
"fields" => array:4 [
"content" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.DEFAULTS"
"underline" => true
"fields" => array:4 [
"title" => array:6 [
"type" => "text"
"label" => "PLUGIN_ADMIN.SITE_TITLE"
"size" => "large"
"placeholder" => "PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER"
"help" => "PLUGIN_ADMIN.SITE_TITLE_HELP"
"name" => "title"
]
"author.name" => array:5 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_AUTHOR"
"help" => "PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP"
"name" => "author.name"
]
"author.email" => array:6 [
"type" => "text"
"size" => "large"
"label" => "PLUGIN_ADMIN.DEFAULT_EMAIL"
"help" => "PLUGIN_ADMIN.DEFAULT_EMAIL_HELP"
"validate" => array:1 [
"type" => "email"
]
"name" => "author.email"
]
"taxonomies" => array:7 [
"type" => "selectize"
"size" => "large"
"label" => "PLUGIN_ADMIN.TAXONOMY_TYPES"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.TAXONOMY_TYPES_HELP"
"validate" => array:1 [
"type" => "commalist"
]
"name" => "taxonomies"
]
]
"name" => "content"
]
"summary" => array:5 [
"type" => "section"
"title" => "PLUGIN_ADMIN.PAGE_SUMMARY"
"underline" => true
"fields" => array:4 [
"summary.enabled" => array:7 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.ENABLED"
"highlight" => 1
"help" => "PLUGIN_ADMIN.ENABLED_HELP"
"options" => array:2 [
1 => "PLUGIN_ADMIN.YES"
0 => "PLUGIN_ADMIN.NO"
]
"validate" => array:1 [
"type" => "bool"
]
"name" => "summary.enabled"
]
"summary.size" => array:6 [
"type" => "text"
"size" => "x-small"
"append" => "PLUGIN_ADMIN.CHARACTERS"
"label" => "PLUGIN_ADMIN.SUMMARY_SIZE"
"help" => "PLUGIN_ADMIN.SUMMARY_SIZE_HELP"
"validate" => array:3 [
"type" => "int"
"min" => 0
"max" => 65536
]
]
"summary.format" => array:6 [
"type" => "toggle"
"label" => "PLUGIN_ADMIN.FORMAT"
"classes" => "fancy"
"help" => "PLUGIN_ADMIN.FORMAT_HELP"
"highlight" => "short"
"options" => array:2 [
"short" => "PLUGIN_ADMIN.SHORT"
"long" => "PLUGIN_ADMIN.LONG"
]
]
"summary.delimiter" => array:4 [
"type" => "text"
"size" => "x-small"
"label" => "PLUGIN_ADMIN.DELIMITER"
"help" => "PLUGIN_ADMIN.DELIMITER_HELP"
]
]
"name" => "summary"
]
"metadata" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.METADATA"
"underline" => true
"fields" => array:1 [
"metadata" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.METADATA"
"help" => "PLUGIN_ADMIN.METADATA_HELP"
"placeholder_key" => "PLUGIN_ADMIN.METADATA_KEY"
"placeholder_value" => "PLUGIN_ADMIN.METADATA_VALUE"
]
]
]
"routes" => array:4 [
"type" => "section"
"title" => "PLUGIN_ADMIN.REDIRECTS_AND_ROUTES"
"underline" => true
"fields" => array:2 [
"redirects" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS"
"help" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE"
]
"routes" => array:5 [
"type" => "array"
"label" => "PLUGIN_ADMIN.CUSTOM_ROUTES"
"help" => "PLUGIN_ADMIN.CUSTOM_ROUTES_HELP"
"placeholder_key" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY"
"placeholder_value" => "PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE"
]
]
]
]
]
]
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Config/CompiledBlueprints.php
*
* @param string $name Name of the position.
* @param array $files Files to be loaded.
*/
protected function loadFile($name, $files)
{
// Load blueprint file.
$blueprint = new Blueprint($files);
$this->object->embed($name, $blueprint->load()->toArray(), '/', true);
}
/**
* Load and join all configuration files.
*
* @return bool
* @internal
*/
protected function loadFiles()
{
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Config/CompiledBlueprints.php
$list = [];
foreach ($this->files as $files) {
foreach ($files as $name => $item) {
$list[$name][] = $this->path . $item['file'];
}
}
// Load files.
foreach ($list as $name => $files) {
$this->loadFile($name, $files);
}
$this->finalizeObject();
return true;
}
protected function getState()
{
return $this->object->getState();
Arguments
"site"
array:1 [
0 => "/data03/virt54607/domeenid/www.kookos.ee/hk/system/blueprints/config/site.yaml"
]
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Config/CompiledBase.php
* @return mixed
*/
public function load()
{
if ($this->object) {
return $this->object;
}
$filename = $this->createFilename();
if (!$this->loadCompiledFile($filename) && $this->loadFiles()) {
$this->saveCompiledFile($filename);
}
return $this->object;
}
/**
* Returns checksum from the configuration files.
*
* You can set $this->checksum = false to disable this check.
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Service/ConfigServiceProvider.php
$files = [];
$paths = $locator->findResources('blueprints://config');
$files += (new ConfigFileFinder)->locateFiles($paths);
$paths = $locator->findResources('plugins://');
$files += (new ConfigFileFinder)->setBase('plugins')->locateInFolders($paths, 'blueprints');
$blueprints = new CompiledBlueprints($cache, $files, GRAV_ROOT);
return $blueprints->name("master-{$setup->environment}")->load();
}
public static function load(Container $container)
{
/** Setup $setup */
$setup = $container['setup'];
/** @var UniformResourceLocator $locator */
$locator = $container['locator'];
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Service/ConfigServiceProvider.php
class ConfigServiceProvider implements ServiceProviderInterface
{
public function register(Container $container)
{
$container['setup'] = function ($c) {
return static::setup($c);
};
$container['blueprints'] = function ($c) {
return static::blueprints($c);
};
$container['config'] = function ($c) {
return static::load($c);
};
$container['languages'] = function ($c) {
return static::languages($c);
};
}
Arguments
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/pimple/pimple/src/Pimple/Container.php
) {
return $this->values[$id];
}
if (isset($this->factories[$this->values[$id]])) {
return $this->values[$id]($this);
}
$raw = $this->values[$id];
$val = $this->values[$id] = $raw($this);
$this->raw[$id] = $raw;
$this->frozen[$id] = true;
return $val;
}
/**
* Checks if a parameter or an object is set.
*
Arguments
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Service/ConfigServiceProvider.php
$files = [];
$paths = $locator->findResources('config://');
$files += (new ConfigFileFinder)->locateFiles($paths);
$paths = $locator->findResources('plugins://');
$files += (new ConfigFileFinder)->setBase('plugins')->locateInFolders($paths);
$config = new CompiledConfig($cache, $files, GRAV_ROOT);
$config->setBlueprints(function() use ($container) {
return $container['blueprints'];
});
return $config->name("master-{$setup->environment}")->load();
}
public static function languages(Container $container)
{
/** @var Setup $setup */
$setup = $container['setup'];
Arguments
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Data/Data.php
* @return Blueprint
*/
public function blueprints()
{
if (!$this->blueprints){
$this->blueprints = new Blueprint;
} elseif (is_callable($this->blueprints)) {
// Lazy load blueprints.
$blueprints = $this->blueprints;
$this->blueprints = $blueprints();
}
return $this->blueprints;
}
/**
* Save data if storage has been defined.
*/
public function save()
{
$file = $this->file();
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Data/Data.php
* @return $this
*/
public function joinDefaults($name, $value, $separator = '.')
{
if (is_object($value)) {
$value = (array) $value;
}
$old = $this->get($name, null, $separator);
if ($old !== null) {
$value = $this->blueprints()->mergeData($value, $old, $name, $separator);
}
$this->set($name, $value, $separator);
return $this;
}
/**
* Get value from the configuration and join it with given data.
*
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Themes.php
/**
* Load theme configuration.
*
* @param string $name Theme name
* @param Config $config Configuration class
*/
protected function loadConfiguration($name, Config $config)
{
$themeConfig = CompiledYamlFile::instance("themes://{$name}/{$name}" . YAML_EXT)->content();
$config->joinDefaults("themes.{$name}", $themeConfig);
}
/**
* Load theme languages.
*
* @param Config $config Configuration class
*/
protected function loadLanguages(Config $config)
{
/** @var UniformResourceLocator $locator */
Arguments
"themes.big-picture"
array:1 [
"enabled" => true
]
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Themes.php
* Configure and prepare streams for current template.
*
* @throws \InvalidArgumentException
*/
public function configure()
{
$name = $this->current();
$config = $this->config;
$this->loadConfiguration($name, $config);
/** @var UniformResourceLocator $locator */
$locator = $this->grav['locator'];
$registered = stream_get_wrappers();
$schemes = $config->get(
"themes.{$name}.streams.schemes",
['theme' => ['paths' => $locator->findResources("themes://{$name}", false)]]
);
Arguments
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Themes.php
// Register instance as autoloader for theme inheritance
spl_autoload_register([$this, 'autoloadTheme']);
}
public function init()
{
/** @var Themes $themes */
$themes = $this->grav['themes'];
$themes->configure();
$this->initTheme();
}
public function initTheme()
{
/** @var Themes $themes */
$themes = $this->grav['themes'];
try {
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Processors/ThemesProcessor.php
namespace Grav\Common\Processors;
class ThemesProcessor extends ProcessorBase implements ProcessorInterface {
public $id = 'themes';
public $title = 'Themes';
public function process() {
$this->container['themes']->init();
}
}
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Grav.php
public function process()
{
/** @var Debugger $debugger */
$debugger = $this['debugger'];
// process all processors (e.g. config, initialize, assets, ..., render)
foreach ($this->processors as $processor) {
$processor = $this[$processor];
$this->measureTime($processor->id, $processor->title, function () use ($processor) {
$processor->process();
});
}
// Set the header type
$this->header();
echo $this->output;
$debugger->render();
$this->fireEvent('onOutputRendered');
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Grav.php
$container['debugger'] = new Debugger();
$debugger = $container['debugger'];
// closure that measures time by wrapping a function into startTimer and stopTimer
// The debugger can be passed to the closure. Should be more performant
// then to get it from the container all time.
$container->measureTime = function ($timerId, $timerTitle, $callback) use ($debugger) {
$debugger->startTimer($timerId, $timerTitle);
$callback();
$debugger->stopTimer($timerId);
};
$container->measureTime('_services', 'Services', function () use ($container) {
$container->registerServices($container);
});
return $container;
}
/data03/virt54607/domeenid/www.kookos.ee/hk/system/src/Grav/Common/Grav.php
/**
* Magic Catch All Function
* Used to call closures like measureTime on the instance.
* Source: http://stackoverflow.com/questions/419804/closures-as-class-members
*/
public function __call($method, $args)
{
$closure = $this->$method;
call_user_func_array($closure, $args);
}
/**
* Initialize and return a Grav instance
*
* @param array $values
*
* @return static
*/
protected static function load(array $values)
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Symfony\Component\VarDumper\Cloner\AbstractCloner::handleError(), 4 passed in /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Caster/ReflectionCaster.php on line 315 and exactly 5 expected in /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:307
Stack trace:
#0 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Caster/ReflectionCaster.php(315): Symfony\Component\VarDumper\Cloner\AbstractCloner->handleError(8192, 'Method Reflecti...', '/data03/virt546...', 315)
#1 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Caster/ReflectionCaster.php(305): Symfony\Component\VarDumper\Caster\ReflectionCaster::addMap(Array, Object(ReflectionFunction), Array, '')
#2 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Caster/ReflectionCaster.php(200): Symfony\Component\VarDumper\Caster\ReflectionCaster::addExtra(Array, Object(ReflectionFunction))
#3 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Caster/ReflectionCaster.php(51): Symfony\Component\VarDumper\Caster\ReflectionCaster::castFunctionAbstract(Object(ReflectionFunction), Array, Object(Symfony\Component\VarDumper\Cloner\Stub), false)
#4 [internal function]: Symfony\Component\VarDumper\Caster\ReflectionCaster::castClosure(Object(ReflectionFunction), Array, Object(Symfony\Component\VarDumper\Cloner\Stub), false, 1)
#5 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(290): call_user_func('Symfony\\Compone...', Object(Closure), Array, Object(Symfony\Component\VarDumper\Cloner\Stub), false, 1)
#6 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(245): Symfony\Component\VarDumper\Cloner\AbstractCloner->callCaster('Symfony\\Compone...', Object(Closure), Array, Object(Symfony\Component\VarDumper\Cloner\Stub), false)
#7 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/VarCloner.php(154): Symfony\Component\VarDumper\Cloner\AbstractCloner->castObject(Object(Symfony\Component\VarDumper\Cloner\Stub), false)
#8 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php(191): Symfony\Component\VarDumper\Cloner\VarCloner->doClone(Object(Closure))
#9 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(123): Symfony\Component\VarDumper\Cloner\AbstractCloner->cloneVar(Object(Closure), 1)
#10 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(155): Whoops\Util\TemplateHelper->dump(Object(Closure))
#11 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(50): Whoops\Util\TemplateHelper->dumpArgs(Object(Whoops\Exception\Frame))
#12 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(197): require('/data03/virt546...')
#13 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/data03/virt546...', Array)
#14 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(195): call_user_func(Object(Closure), '/data03/virt546...', Array)
#15 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(32): Whoops\Util\TemplateHelper->render('/data03/virt546...')
#16 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(197): require('/data03/virt546...')
#17 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/data03/virt546...', Array)
#18 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(195): call_user_func(Object(Closure), '/data03/virt546...', Array)
#19 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(214): Whoops\Util\TemplateHelper->render('/data03/virt546...')
#20 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Run.php(260): Whoops\Handler\PrettyPageHandler->handle(Object(Whoops\Exception\ErrorException))
#21 [internal function]: Whoops\Run->handleException(Object(Whoops\Exception\ErrorException))
#22 {main}
thrown in
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php on line
307
Crikey! There was an error...
Stack frames (1):
0
Whoops\Exception\ErrorException
…/vendor/symfony/var-dumper/Cloner/AbstractCloner.php307
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php
return $a;
}
/**
* Special handling for errors: cloning must be fail-safe.
*
* @internal
*/
public function handleError($type, $msg, $file, $line, $context)
{
if (E_RECOVERABLE_ERROR === $type || E_USER_ERROR === $type) {
// Cloner never dies
throw new \ErrorException($msg, 0, $type, $file, $line);
}
if ($this->prevErrorHandler) {
return call_user_func($this->prevErrorHandler, $type, $msg, $file, $line, $context);
}
Fatal error: Uncaught ArgumentCountError: Too few arguments to function Symfony\Component\VarDumper\Cloner\AbstractCloner::handleError(), 4 passed and exactly 5 expected in /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php:307
Stack trace:
#0 [internal function]: Symfony\Component\VarDumper\Cloner\AbstractCloner->handleError(8192, 'mb_convert_enco...', '/data03/virt546...', 433)
#1 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Dumper/HtmlDumper.php(433): mb_convert_encoding('<script> Sfdump...', 'HTML-ENTITIES', 'UTF-8')
#2 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Dumper/CliDumper.php(189): Symfony\Component\VarDumper\Dumper\HtmlDumper->dumpLine(0)
#3 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/Data.php(202): Symfony\Component\VarDumper\Dumper\CliDumper->dumpString(Object(Symfony\Component\VarDumper\Cloner\Cursor), Array, false, 0)
#4 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/Data.php(114): Symfony\Component\VarDumper\Cloner\Data->dumpItem(Object(Symfony\Component\VarDumper\Dumper\HtmlDumper), Object(Symfony\Component\VarDumper\Cloner\Cursor), Array, 'Uncaught Argume...')
#5 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Dumper/AbstractDumper.php(121): Symfony\Component\VarDumper\Cloner\Data->dump(Object(Symfony\Component\VarDumper\Dumper\HtmlDumper))
#6 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Dumper/HtmlDumper.php(93): Symfony\Component\VarDumper\Dumper\AbstractDumper->dump(Object(Symfony\Component\VarDumper\Cloner\Data), Object(Whoops\Util\HtmlDumperOutput))
#7 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(122): Symfony\Component\VarDumper\Dumper\HtmlDumper->dump(Object(Symfony\Component\VarDumper\Cloner\Data), Object(Whoops\Util\HtmlDumperOutput))
#8 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(155): Whoops\Util\TemplateHelper->dump('Uncaught Argume...')
#9 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php(50): Whoops\Util\TemplateHelper->dumpArgs(Object(Whoops\Exception\Frame))
#10 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(197): require('/data03/virt546...')
#11 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/data03/virt546...', Array)
#12 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(195): call_user_func(Object(Closure), '/data03/virt546...', Array)
#13 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php(32): Whoops\Util\TemplateHelper->render('/data03/virt546...')
#14 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(197): require('/data03/virt546...')
#15 [internal function]: Whoops\Util\TemplateHelper->Whoops\Util\{closure}('/data03/virt546...', Array)
#16 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php(195): call_user_func(Object(Closure), '/data03/virt546...', Array)
#17 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php(214): Whoops\Util\TemplateHelper->render('/data03/virt546...')
#18 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Run.php(260): Whoops\Handler\PrettyPageHandler->handle(Object(Whoops\Exception\ErrorException))
#19 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Run.php(333): Whoops\Run->handleException(Object(Whoops\Exception\ErrorException))
#20 /data03/virt54607/domeenid/www.kookos.ee/hk/vendor/filp/whoops/src/Whoops/Run.php(358): Whoops\Run->handleError(1, 'Uncaught Argume...', '/data03/virt546...', 307)
#21 [internal function]: Whoops\Run->handleShutdown()
#22 {main}
thrown in
/data03/virt54607/domeenid/www.kookos.ee/hk/vendor/symfony/var-dumper/Cloner/AbstractCloner.php on line
307