Skip to content
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

Add example archiver and CoreConsole task to generate Archiver into plugin. #6523

Merged
merged 6 commits into from Nov 12, 2014

Conversation

mgazdzik
Copy link
Contributor

Refs #6516

{
$this->setName('generate:archiver')
->setDescription('Adds an Archiver to an existing plugin')
->addOption('pluginname', null, InputOption::VALUE_REQUIRED, 'The name of an existing plugin which does not have an API yet');
Copy link
Member

Choose a reason for hiding this comment

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

Text should be "... does not have an Archiver yet"

@tsteur
Copy link
Member

tsteur commented Oct 28, 2014

Off topic: Maybe it makes sense to think about a refactoring of the Archiver in the next 3-4 months. Usually, I build a generator after making the API's simpler to avoid people generating things that will be deprecated later. Providing a very simple API for Archiver would be awesome but also really hard.

@mgazdzik
Copy link
Contributor Author

@tsteur - I've included your feedback suggestions. Would you mind taking a look again and letting me know what you think ?
Thanks in advance :)

Cheers!

{
/**
* It is a good practice to store your archive names (reports stored in database)
* in Archiver class constants. You can define as many record namesas you want
Copy link
Member

Choose a reason for hiding this comment

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

whitespace missing in nameas

@tsteur
Copy link
Member

tsteur commented Nov 11, 2014

Looks good otherwise, just the two changes and then we can merge.

@mgazdzik
Copy link
Contributor Author

@tsteur thanks for feedback. Commited changes to repo.

tsteur added a commit that referenced this pull request Nov 12, 2014
Add example archiver and CoreConsole task to generate Archiver into plugin.
@tsteur tsteur merged commit 26cd0c6 into matomo-org:master Nov 12, 2014
@tsteur
Copy link
Member

tsteur commented Nov 12, 2014

Cheers!

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.

None yet

2 participants