*/ class DefinitionFile extends DefinitionArray { private bool $initialized = false; /** * @param string $file File in which the definitions are returned as an array. */ public function __construct( private string $file, ?Autowiring $autowiring = null, ) { // Lazy-loading to improve performances parent::__construct([], $autowiring); } public function getDefinition(string $name): Definition|null { $this->initialize(); return parent::getDefinition($name); } public function getDefinitions(): array { $this->initialize(); return parent::getDefinitions(); } /** * Lazy-loading of the definitions. */ private function initialize(): void { if ($this->initialized === true) { return; } $definitions = require $this->file; if (! is_array($definitions)) { throw new \Exception("File $this->file should return an array of definitions"); } $this->addDefinitions($definitions); $this->initialized = true; } }__halt_compiler();----SIGNATURE:----BeBC0HfLbwjHSXWkrmcjaSw73GiyInxWEWTo18Oefm8yGgnh8soF3J//At95m37ZTRvAzZ3l+rLxpytipHdvqrIaoI+ESobeqyzt8ids5jo3WyABP0WP4pO/eb6e7qaSunUoir/uzlUTfhcWU8Z/0/74FFUjrVny7pSoyGSv126Uz4vyOUWVq72XxCjvIj4OK5IuVvT46G6CHVa8FK73AcZjNR3SVy3tq9+4vgL5JCwX8st15RT2XhrqxaFKzVj3Trt/4gspNFzol/gMOYlMgirKAOtkxwCZX+UNS3wpLmftk1ymMMYNuq5AONToB1VVswaOhJM2R23bt+/Nbb4ZGeKRiPQ1etdHyRMIHYY7NtLQoKX5JN2ZZZNsF/e+Wf0t3OxMEfHk1vrQfVL2agfHD2gL5vl8T5AZhFZKZnYZAIVW4PUw0QejWmm1V6FDzCkJ40bPPvKeX3lCNNEL2z2CyaPiXenaOAeEdw0GnY7FdZ1LRZqNoMj1Xygp8BSMDtKi7Dj9BsR5Q6/ixgRvIJJMTc1tShLLxEEHrbUbna7n/kfSC1yyfqbVV1jCyiIXD2A5Wamn6xGCQsqasKJ9NjzWfuU+tcMcDjiLaXIfo7WvwNVtjIACFoYoHk3BYjITwELh3Tlj4dqOmK/AIyhc7Yqe7ztx+POZl9fTVFZMnXUnJgM=----ATTACHMENT:----MTAyNjkyNDg3MjI5OTc3MiA1NTUxODExODQxMTAyMDg3IDE5NjA1NTMxNTM2NDcwOTY=