Skip to content

added a migrator class to make it possible to easily add new pages via the cli #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 6, 2013

Conversation

lsmith77
Copy link
Member

@lsmith77 lsmith77 commented Apr 6, 2013

the idea is that it would then be possible to add new pages by simply adding a yml file to app/Resources/data/pages and calling:

app/console doctrine:phpcr:migrator page --identifier=/cms/simple/test

lsmith77 added a commit that referenced this pull request Apr 6, 2013
added a migrator class to make it possible to easily add new pages via the cli
@lsmith77 lsmith77 merged commit c67931f into master Apr 6, 2013
@lsmith77 lsmith77 deleted the migrator branch April 6, 2013 15:19
@dbu
Copy link
Member

dbu commented Apr 6, 2013

ok nice. do we have any doc concerning the migrator yet?

we have to be careful not to duplicate tools like alice though: http://github.com/nelmio/alice
that has a bit of a different approach, you basically express entities in yml and alice creates objects from them for you. its primarly meant for fixtures and thus integrates with faker to generate random texts, names, adresses and so on as well.

@lsmith77
Copy link
Member Author

lsmith77 commented Apr 6, 2013

@dbu
Copy link
Member

dbu commented Apr 6, 2013

ok cool. we should also have them in the phpcr bundle reference i guess.
we have some many things that it becomes a challenge to document them
right :-D

@lsmith77
Copy link
Member Author

lsmith77 commented Apr 6, 2013

also added some docs to the DoctrinePHPCRBundle symfony-cmf/symfony-cmf-docs@6ba64c2

@dbu
Copy link
Member

dbu commented Apr 6, 2013

thanks!

@dbu dbu mentioned this pull request Aug 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants