Introducing bunny-bundle (for Symfony developers) #133
Replies: 1 comment 2 replies
-
Hey @tacman 👋 Nice for you to share it! If I'm not mistaken, the I'm asking this as I'm considering to add a link to the repo to my own README, but I'm a bit "worried" that the bundle already tries to do too much (even though it's in early stages) for a bundle of a third-party package. Normally when I see/use a (Symfony) bundle for a package (like this one) it just contains some config to wire services and that's it. No additional commands, controllers, services or (unnecessary) dependencies. It keeps it simple and easy to maintain. I have already expressed my thoughts on creating a bundle and that you can achieve the same with a couple of lines in the If your focus will be kept on the storage zones then I will respect your decision, it might however be a bit clearer if you could clarify this is your documentation, as stating "A Symfony bundle to interact with BunnyCDN via the Bunny-PHP library." could lead to incorrect assumptions (like I did) regarding the functionality of the bundle. |
Beta Was this translation helpful? Give feedback.
-
I have a (rough) bundle for Symfony developers. One of the main things it does is simplifies the password, so that (1) they are defined in environment variables and (2) you don't need to pass them explicitly when calling the edgeApi.
Here's a simple proof-of-concept that you can cut and paste as long as you have a bunny api key (and of course the symfony CLI):
The above populates the .env.local file with the necessary API keys, in a real application you'd probably want to be selective about which ones to export.
You can browse interactively with the basic admin controller.
There's also commands for uploading and downloading files from the bunny edge storage.
where larco.zip is in the museado zone, /data/ path.
Feedback welcome!
Beta Was this translation helpful? Give feedback.
All reactions