Thanks for all helps as about renaming /vendor/ folder i'll let you know if
it works.
در 2014 2 7 12:45، "Herman Peeren" <[email protected]> نوشت:

> The next step after PSR-0 autoloading: PSR-4.
> PSR-4-specification: http://www.php-fig.org/psr/psr-4/
> PSR-4 autoloader in Composer, see:
> http://seld.be/notes/psr-4-autoloading-support-in-composer
> example PSR-4 implementations:
> https://github.com/php-fig/fig-standards/blob/master/proposed/psr-4-autoloader/psr-4-autoloader-examples.md
>
> On Friday, 7 February 2014 12:37:24 UTC+1, Herman Peeren wrote:
>>
>> You can as well use the Composer autoloader, it works almost the same. I
>> only used the Doctrine autoloader because of the underscores I sometimes
>> had in my classnames.
>>
>> With something like this you can use the Composer autoloader to register
>> namespaces:
>>
>> $loader = new \Composer\Autoload\ClassLoader();$loader->add($namespace, 
>> $path);$loader->add($anotherNamespace, $anotherPath); //etc...
>> $loader->register();
>>
>>
>> I never used composer_namespaces.php, but you are probably right. Please
>> let us know if you have figured that out exactly. Thanks.
>>
>> On Friday, 7 February 2014 11:40:50 UTC+1, Parsifal wrote:
>>>
>>> Thanks for the advice I'll add this to bootstrap as you said
>>> doctrineLoader = new ClassLoader('Entities','path/to/entities-folder');
>>> $doctrineLoader->register();
>>> I too prefer to rename /vendor/ to 3rdparty/ so which files shoul I
>>> edit? Only compser_namespaces.php is enough to edit in order to rename
>>> /vendor/ folder?
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to