[TYPO3-core] Creating aliases with the "use" operator
Philipp Gampe
philipp.gampe at typo3.org
Fri Oct 12 22:03:42 CEST 2012
Hi Steffen,
Steffen Müller wrote:
> namespace TYPO3\CMS\Core\Log;
>
> use \TYPO3\CMS\Core\Log as Log;
Sure you can do this.
I suggest to always use the last segment as identifier (what you did
already), because it makes it easier to find the namespace (without
scrolling to top). But there are no fixed rules for this yet.
> What do you think?
As Jigal said, you can use all classes inside the namespace without the
namespace prefix.
Cheers
--
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!
More information about the TYPO3-team-core
mailing list