2
I was giving a studied in some PHP features, so I came across something that generated me curiosity.
When using namespace I ended up having to do something similar to this:
use Model\User\Create
require 'User.php' //Arquivo onde se encontra a classe Create
My question is about require, for example, every time I use namespace I have to require the file where the classes are, or just have to do it when I’m not using autoload?
Related: New autoload of PHP
– Wallace Maxters
Related: Questions about autoload PHP
– Wallace Maxters
Related: How to configure autoload in the Composer?
– Wallace Maxters