0
I’m using composer
with autoload in class namespaces, assuming I have the parent class Model:
Model.php
<?php
namespace App\Model;
use App\Utils;
use \PDO;
class Model {}
And the daughter class Item: Item.php
<?php
namespace App\Model;
class Item extends Model {}
Would there be some way for me to "inherit" imports of parent-class namespaces as well(App\Utils
and \PDO
)?
I ask because I would need to use several classes that use App\Utils
and \PDO
, and I would like to know if there is any way that I do not need to repeat every time the use
in each class.
Thank you!