addPrefix in Autoloader

5 views
Skip to first unread message

Hari K T

unread,
Dec 22, 2011, 9:01:16 PM12/22/11
to aur...@googlegroups.com
Hi Guys, 

A doubt / concern regarding naming .

$loader->addPrefix('Vendor\Package\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

Normally when you hear about Prefix it means this will add before this.

So I wonder whether the directory path should also contain the Vendor\Package if namespace given is like that .

$loader->addPrefix('Vendor\Package\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src/Vendor/Package');

Any other thoughts guys ?

Hari K T
M: +91-9388758821 | W: http://harikt.com/blog

Reply all
Reply to author
Forward
0 new messages