You'd like to use the class MyDBConnection that's defined in the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?
A.
Import the MyGreatFramework namespace
B.
Import the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace
C.
Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer\MyDBConnection to a shorter name
D.
Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer to a shorter name
This removes the need to prefix the class with the namespace name. You can refer to the class simply as ‘MyDBConnection’.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit