Open dafap opened 8 years ago
That does appear to be the problem. There are quite a few places in ClassmapController::generate
where the directory separator is hard-coded to forward-slash.
Honestly, this module doesn't appear to be actively maintained and in the intervening time ZF has moved from Zend\Loader to Composer for it's autoloading. I would suggest adding your module namespace to the autoload section of your project's composer.json
instead, or check out this nifty new tool on the zfcampus side which automates the task: https://github.com/zfcampus/zf-composer-autoloading
Thank you for your advice. So I registered my namespaces in composer.json Best regard.
Alain POMIROL DAFAP Informatique Tel. 06 07 87 94 44
----- Mail original ----- De: "Adam Lundrigan" notifications@github.com À: "zendframework/ZFTool" ZFTool@noreply.github.com Cc: "Pomirol Alain" dafap@free.fr, "Author" author@noreply.github.com Envoyé: Lundi 15 Août 2016 23:43:27 Objet: Re: [zendframework/ZFTool] Create classmap on Windows OS (#132)
That does appear to be the problem. There are quite a few places in ClassmapController::generate where the directory separator is hard-coded to forward-slash.
Honestly, this module doesn't appear to be actively maintained and in the intervening time ZF has moved from Zend\Loader to Composer for it's autoloading. I would suggest adding your module namespace to the autoload section of your project's composer.json instead, or check out this nifty new tool on the zfcampus side which automates the task: https://github.com/zfcampus/zf-composer-autoloading
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub , or mute the thread .
On windows, command
php vendor\zendframework\zftool\zf.php classmap generate module/DafapMail -w
product wrong file autoload_classmap.php :Path is wrong.
The problem is calculating on $relativePath because DIRECTORY_SEPARATOR is not '/'.