Code Monkey home page Code Monkey logo

Comments (6)

sbosshardt avatar sbosshardt commented on May 25, 2024 2

I also ran into a problem when using forward slashes per the README.md. I realize that Windows paths use backslashes and Mac/Linux paths uses forward slashes. I think what is going on here is that namespaces are the problem, not filesystem paths.

When I first was reading, I was a bit confused as to why forward slashes would be used for defining PHP namespaces (but tried using them anyway). Using forward slashes would cause me to receive an error: "Unable to determine location to save PHP class ..." Changing to backslashes worked for me (I'm using Linux). Perhaps someone with Windows can confirm that namespaces with backslash work well for them too?

I think it is worth noting that the explanations of config.yml use backslashes, yet the sample config.yml uses forward slashes. Screenshot below...

xsd2php-issue11-namespaces_documentation_screenshot

from xsd2php.

goetas avatar goetas commented on May 25, 2024

/ are for mac Unix and Linux based systems
\ are for windows

Not sure if this should be documented

from xsd2php.

goetas avatar goetas commented on May 25, 2024

Was this the issue?

from xsd2php.

goetas avatar goetas commented on May 25, 2024

Quoting depends on yaml specifications.. and I'm not really deep into it

from xsd2php.

holtkamp avatar holtkamp commented on May 25, 2024

Not sure if this should be documented

Think this would be useful yes... I really had to puzzle a bit until I got it working and started doubting my configuration. A short comment can already help starting users:

destinations_php:
    #On Windows
    TestNs/MyApp: soap/src 
    #On Mac, Unix, Linux, etc
    TestNs\MyApp: soap/src 

Quoting depends on yaml specifications.. and I'm not really deep into it

Ok, well, my personal approach would be to leave as little to interpretation as possible, so either use it consistently (both for the key AND the value):

destinations_php:
    #On Windows
    'TestNs/MyApp': 'soap/src'
    #On Mac, Unix, Linux, etc
    'TestNs\MyApp': 'soap/src'

or not at all:

destinations_php:
    #On Windows
    TestNs/MyApp: soap/src 
    #On Mac, Unix, Linux, etc
    TestNs\MyApp: soap/src 

just my 2 cents, not big issues 😄

from xsd2php.

goetas avatar goetas commented on May 25, 2024

fixed with c93698f

from xsd2php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.