Initial Base
This commit is contained in:
80
var/cache/dev/Symfony/Config/StimulusConfig.php
vendored
Normal file
80
var/cache/dev/Symfony/Config/StimulusConfig.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Config;
|
||||
|
||||
use Symfony\Component\Config\Loader\ParamConfigurator;
|
||||
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
||||
|
||||
/**
|
||||
* This class is automatically generated to help in creating a config.
|
||||
*/
|
||||
class StimulusConfig implements \Symfony\Component\Config\Builder\ConfigBuilderInterface
|
||||
{
|
||||
private $controllerPaths;
|
||||
private $controllersJson;
|
||||
private $_usedProperties = [];
|
||||
|
||||
/**
|
||||
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function controllerPaths(ParamConfigurator|array $value): static
|
||||
{
|
||||
$this->_usedProperties['controllerPaths'] = true;
|
||||
$this->controllerPaths = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @default '%kernel.project_dir%/assets/controllers.json'
|
||||
* @param ParamConfigurator|mixed $value
|
||||
* @return $this
|
||||
*/
|
||||
public function controllersJson($value): static
|
||||
{
|
||||
$this->_usedProperties['controllersJson'] = true;
|
||||
$this->controllersJson = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getExtensionAlias(): string
|
||||
{
|
||||
return 'stimulus';
|
||||
}
|
||||
|
||||
public function __construct(array $value = [])
|
||||
{
|
||||
if (array_key_exists('controller_paths', $value)) {
|
||||
$this->_usedProperties['controllerPaths'] = true;
|
||||
$this->controllerPaths = $value['controller_paths'];
|
||||
unset($value['controller_paths']);
|
||||
}
|
||||
|
||||
if (array_key_exists('controllers_json', $value)) {
|
||||
$this->_usedProperties['controllersJson'] = true;
|
||||
$this->controllersJson = $value['controllers_json'];
|
||||
unset($value['controllers_json']);
|
||||
}
|
||||
|
||||
if ([] !== $value) {
|
||||
throw new InvalidConfigurationException(sprintf('The following keys are not supported by "%s": ', __CLASS__).implode(', ', array_keys($value)));
|
||||
}
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
$output = [];
|
||||
if (isset($this->_usedProperties['controllerPaths'])) {
|
||||
$output['controller_paths'] = $this->controllerPaths;
|
||||
}
|
||||
if (isset($this->_usedProperties['controllersJson'])) {
|
||||
$output['controllers_json'] = $this->controllersJson;
|
||||
}
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user