Code Monkey home page Code Monkey logo

Comments (10)

sstok avatar sstok commented on July 29, 2024 2

This only happens when you generate a class-map, you can add an exclude-from-classmap for this.

"autoload": {
    "psr-4": { "WhiteOctober\\PagerfantaBundle\\": "" }
},
"exclude-from-classmap": [
    "Tests",
    "TestsProject"
]

And it's generally recommended to use a .gitattribute (which is properly what @SpacePossum meant πŸ˜‰ ):

/Tests export-ignore
/TestsProject export-ignore

Which also makes the distribution file much smaller.

from whiteoctoberpagerfantabundle.

sampart avatar sampart commented on July 29, 2024 2

This is now fixed in release https://github.com/whiteoctober/WhiteOctoberPagerfantaBundle/releases/tag/v1.1.3.

from whiteoctoberpagerfantabundle.

SpacePossum avatar SpacePossum commented on July 29, 2024 1

Hi @sampart , no worries and no apologies needed, thank you guys for this bundle and for all the time you've committed to it πŸ‘
I created a PR in the hope to resolve this, lets see how it goes :)

(PS. @delboy1978uk you should be able to update to 2.1 I think, as the tests are not an issue there)

from whiteoctoberpagerfantabundle.

sampart avatar sampart commented on July 29, 2024 1

Thanks!

from whiteoctoberpagerfantabundle.

delboy1978uk avatar delboy1978uk commented on July 29, 2024

We are stuck on v1.0.0 because of this. Tried the exclude thing in our json, with no success.

from whiteoctoberpagerfantabundle.

delboy1978uk avatar delboy1978uk commented on July 29, 2024

FYI, I fixed it by manually specifying which AppKernel class to use (our one!)

"autoload": {
        "psr-4": { "": "src/" },
        "classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
    },

But seriously, your test stuff should not interfere like this! Give that file a namespace! :-D

from whiteoctoberpagerfantabundle.

SpacePossum avatar SpacePossum commented on July 29, 2024

@pablodip is this still maintained, would you welcome a PR to resolve this issue?

from whiteoctoberpagerfantabundle.

sampart avatar sampart commented on July 29, 2024

@SpacePossum thanks for your involvement with this so far. You're right that the project is suffering from a lack of available time on our behalf. If you were able to create a PR, that would be great. Sorry not to have had more time to look at this one.

from whiteoctoberpagerfantabundle.

BackEndTea avatar BackEndTea commented on July 29, 2024

And it's generally recommended to use a .gitattribute

This is true, but it won't stop the Tests folder etc from appearing if someone runs composer with --prefer-source, of if it has trouble getting the distributed version, and it uses the source as a fall-back.

from whiteoctoberpagerfantabundle.

SpacePossum avatar SpacePossum commented on July 29, 2024

closing as this is fixed :)

from whiteoctoberpagerfantabundle.

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.