Comments (10)
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.
This is now fixed in release https://github.com/whiteoctober/WhiteOctoberPagerfantaBundle/releases/tag/v1.1.3.
from whiteoctoberpagerfantabundle.
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.
Thanks!
from whiteoctoberpagerfantabundle.
We are stuck on v1.0.0 because of this. Tried the exclude thing in our json, with no success.
from whiteoctoberpagerfantabundle.
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.
@pablodip is this still maintained, would you welcome a PR to resolve this issue?
from whiteoctoberpagerfantabundle.
@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.
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.
closing as this is fixed :)
from whiteoctoberpagerfantabundle.
Related Issues (20)
- PHP 5.3 builds are failing (and are running with outdated distro config) HOT 1
- Error with MySQL5.7 HOT 2
- Pagination inside an embedded Controller HOT 4
- Call from PHP templates? HOT 2
- Incorrect translate "previous" HOT 4
- Pagerfanta 2.x is now PHP 7, upgrade this project to match
- Not working with Symfony 4.1 beta 2 HOT 2
- Not added to bundles.php in Symfony 4 - getting Unknown βpagerfantaβ function HOT 1
- Create a recipe so that the bundle can be automatically set up by Symfony Flex HOT 4
- Unknown "pagerfanta" function. in symfony 4.1 HOT 3
- How to paginate list with form elements? HOT 1
- Pagerfanta ArrayAdapter ; add text in view HOT 4
- Romanian translation does not work
- Looking for maintainers HOT 7
- Allowed memory size
- Less results than expected on each page
- Archive repo HOT 8
- Symfony 5 support HOT 1
- Supply a view which would actually use Twig for rendering HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whiteoctoberpagerfantabundle.