Recently, I saw phalcon. He used di dependency injection method, but I don’t think it is convenient to set a rule to load automatically. I don’t know what everyone thinks, and I want to know the merits and demerits of this Entre Dos.
The essence of automatic loading ishttp://php.net/manual/zh/function.spl-autoload-register.phpRecommended specification referencehttp://www.php-fig.org/PSR-0 PSR-4
Di dependent injection reference