src/Container.php
public function autoWireServices(ContainerBuilder $containerBuilder): void
    {
        $services = $this->getServices();
        foreach ($services as $class) {
            $containerBuilder->autowire($class, $class)->setPublic(true);
        }
    }
public function autoWireServices(ContainerBuilder $containerBuilder): void
    {
        $services = $this->getServices();
        foreach ($services as $class) {
            $containerBuilder->autowire($class, $class)->setPublic(true);
        }
    }
public function autoWireServices ( ContainerBuilder $ containerBuilder ) : void { $ services = $ this -> getServices ( ) ; foreach ( $ services as $ class ) { $ containerBuilder -> autowire ( $ class , $ class ) -> setPublic ( true ) ; } }
This takes every class from the getServices method, auto wires them and marks them as public. You may wish to
override this if you want to mark certain classes as private

@param ContainerBuilder $containerBuilder
This takes every class from the getServices method auto wires them and marks them as public . You may wish to override this if you want to mark certain classes as private