Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Extension Generator #468

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Conversation

atticoos
Copy link

@atticoos atticoos commented Oct 1, 2015

This adds support for generating extensions.

This uses twig to template & scaffold out an extension. Template files have been added to a new directory, app/console/src/Templates/Extensions.

Usage

Modeled off the legacy documentation

./pagekit extension-generator bundle/name

Example

demo

Disclaimer

There's a few things still to figure out, as I wasn't sure if this was already in development or if there were specific desires, so I didn't want to spend too much time on it past the basics. This would be things like handling default bundle names, etc. The nitty gritty bits. If there is indeed interest in merging this, we can dive into those. Leaving a few todo items here for the completion of this feature:

  • views
  • icon
  • scripts
  • languages
  • assets

@malte-christian
Copy link
Contributor

Thanks for your contribution! It's really appreciated.

We have not yet merged this pull request, because we are currently discussing if Twig should be a Pagekit dependency or not.

Best regards
Malte

@atticoos
Copy link
Author

atticoos commented Oct 7, 2015

👌 will stand by 👍

@atticoos
Copy link
Author

atticoos commented Oct 7, 2015

I'd also advise not merging if you come to a consensus to use Twig, as there's open items noted at the bottom of the description. Unless it's okay for this to merge without them.

@webremote
Copy link

So, is this still a thing or...?

return;
} else {
// create the directory for the extension
mkdir($outputDirectory, 0777, true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

777 This is not a little too wide at the levels of rights?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probs should be a bit less open than 777

@xorinzor
Copy link

xorinzor commented Jul 1, 2016

What's the status on this? It looks like a great addition

@floriandotpy
Copy link
Contributor

Sorry for not getting back to this PR earlier. I agree this would be a great addition. Also, Twig seems to be here to stay, so it is safe to be used for cases like this.

Do you want to update the PR with the suggestions in mind (e.g. change chmod to something less open) and make sure it doesn't have conflicts with develop @ajwhite? If you can't find the time to do so, I will manually grab your changes and commit them to develop directly. Thanks!

@atticoos
Copy link
Author

I'll put it on the list for this week, happy to see this moving 😄

@crwgregory
Copy link
Contributor

crwgregory commented Jul 12, 2016

I made a extension before I saw this pull request. 😶

This is definitely a feature I would like to have. 👍

@tobbexiv tobbexiv mentioned this pull request Mar 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants