$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; } }