Skip to content

Email #1

@Seldaek

Description

@Seldaek

I answered your mail but it bounced back from dreamhost, so here is a copy:

which I think it is correct to try to fetch the bundle without that
library, but the result is the same. So I wonder if there is delay from
when the composer is updated on github and if it is, how long is this
delay?

I forced an update of your bundle, so it should be up to date now.
Usually it takes up to 1hour, until we build a github hook to get almost
instant updates..

At last I'd like to ask you if you could you give me a hint how to make
work the composer with the external library, which must be placed inside
Resources/public/vendor/ElFinder?

The right way to do this is to have your bundle require that ElFinder
library, and have the library as well on github. Look at Geocoder for
example which has a bundle and a library, the bundle depends on the
library: http://packagist.org/search/?search_query%5Bquery%5D=geocoder

That way you will have in your project:

  • vendor/alphalemon/elfinder-bundle
  • vendor/alphalemon/elfinder

And both should be autoloadable which means the exact location of it
won't matter.

Now I guess if you want them in Resources/public/ it's probably a JS lib
so I have been saying stupid things. For JS stuff, there is no good
solution yet, and I don't know if there ever will be. Either you copy
the files in your bundle, or you just write down in the instructions
that this library should be dropped somewhere in the public dir.. Or
alternatively you can also have a Sf2 console Command class that
downloads the ElFinder libs in the right place, then you tell people
that after downloading they should run app/console elfinder:download or
something. It's not super nice but allows updates outside of the release
cycle of your bundle at least.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions