public function registerAutowiredClasses(array $classes, array $overrides = []): void
    {
        foreach ($classes as $class) {
            $reflection = new \ReflectionClass($class);
            $name = $reflection->getName();
            $parameters = $this->getWiredParameters($reflection, $overrides);

            $this->container->addEntry($name, new WiredEntry($name, $parameters));
        }
    }
public function registerAutowiredClasses(array $classes, array $overrides = []): void
    {
        foreach ($classes as $class) {
            $reflection = new \ReflectionClass($class);
            $name = $reflection->getName();
            $parameters = $this->getWiredParameters($reflection, $overrides);

            $this->container->addEntry($name, new WiredEntry($name, $parameters));
        }
    }
public function registerAutowiredClasses ( array $ classes , array $ overrides = [ ] ) : void { foreach ( $ classes as $ class ) { $ reflection = new \ ReflectionClass ( $ class ) ; $ name = $ reflection -> getName ( ) ; $ parameters = $ this -> getWiredParameters ( $ reflection , $ overrides ) ; $ this -> container -> addEntry ( $ name , new WiredEntry ( $ name , $ parameters ) ) ; } }
Registers classes that can be wired automatically based on constructor arguments.
@param string[] $classes List of classes to register for autowiring
@param string[] $overrides Override identifiers for constructor parameters
@throws ContainerException If trying to register classes that have already been registered
Registers classes that can be wired automatically based on constructor arguments .