Conversation
Notices
-
Is there anybody in here that can help solve a problem with installing a #symfony bundle?
I am installing this https://github.com/ibrows/IbrowsNewsletterBundle and I get a : `Class 'Ibrows\MyNewsletterBundle\Entity\Newsletter\Mandant' does not exist` No matter what I do.
My issue https://github.com/ibrows/IbrowsNewsletterBundle/issues/22
-
@dragnucs I know nothing about php… but have you already tried slashes instead of windows-style backslashes?
-
@mcscx Ok, let me try if it works.
-
@mcscx @dragnucs no, that backslash is required for name spaces in #PHP. They are existing relatively long in #PHP5:
PHP
Namespaces were introduced into PHP from version 5.3 onwards. Naming collision of classes, functions and variables can be avoided. In PHP, a namespace is defined with a namespace block. #Wikipedia : https://en.wikipedia.org/wiki/Namespace#Use_in_common_languages
-
@dragnucs @mcscx It doesn't change anything. It is more a #Symfony and IbrowsNewsletter Bundle problem than a pure #PHP one.
-
@dragnucs ah ok. Unfortunately I know nothing about all that.
-
@mcscx #PHP is great, #Symfony is awesome and third party bundles are #Hell.
-
@dragnucs @mcscx Ok I found the solution. The doc was missing a bit. I had to manually map the namespaces. I am gonna test to see if things work correctly then propose an updated bundle doc.
-
@roland @dragnucs @mcscx I still don't like backslashes as namespace separators. But I'm glad #PHP did get namespaces.
-
@lnxw48 @roland @mcscx What is wrong with them?
-
@dragnucs Personal preference. I think of namespaces as filesystem paths. Even as a DOS user, I wished for another (easier to reach) character as filepath separator.
-
@dragnucs Also, backslashes have a special meaning within #PHP strings. I don't like re-using backslashes without their special meaning. I'm not saying it is bad or that it increases errors, just that I don't like the way they did that. @roland @mcscx
-
@lnxw48 early MSDOS versions didn't support directories and MS used the / already for options (like dir /w), so that was already taken....
-
@dragnucs @lnxw48 @mcscx backslashes are normally used for escaping "special" characters, like the backlash itself.
-
@roland when MS realised they need an esc char to escape spaces in filenames \ was already taken so they took ^ for that. @dragnucs @lnxw48