Skip to content

Export refactor - #685

Merged
krusynth merged 14 commits into
masterfrom
export-refactor
Mar 11, 2017
Merged

krusynth merged 14 commits into
masterfrom
export-refactor

Conversation

@krusynth

@krusynth krusynth commented Mar 5, 2017

Copy link
Copy Markdown
Member

It only took 18 months, but this looks like it works pretty good now.

This radically changes how all exports & downloads are handled, moving the logic into a plugin-based system. This introduces the EventManager class for plugin events, called via the trigger method. This adds a lot of new export types – including HTML, Word, PDF, and EPUB – to resolve #50 as well.

Bill Hunt added 13 commits August 4, 2015 13:26
Lots of small tweaks here:
* Router now is properly passed around instead of a static registry.
* Routes are now named instead of being anonymous.
* New EventManager for triggering events (for use in plugins).
* Properly passing around objects instead of using globals in the main controllers. (Not totally done yet.)
Before, only Controller-based routes had access to this data, now the oldschool routes (e.g. /admin/) do as well.
* Updating autoloading to check our full include path.
* Adding plugin class
* Lookup and register plugins in the EventManager
@krusynth
krusynth requested a review from waldoj March 5, 2017 18:30
@waldoj

waldoj commented Mar 6, 2017

Copy link
Copy Markdown
Member

Good Lord. This will take a while to review. :)

}
}

public function has($name)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am impressed by naming a function has(). :)

@waldoj

waldoj commented Mar 6, 2017

Copy link
Copy Markdown
Member

I've been wanting to write a plugin, specific to Virginia—now I can do it. :)

@krusynth
krusynth merged commit 1190c52 into master Mar 11, 2017
@krusynth

Copy link
Copy Markdown
Member Author

Ack, I accidentally merged this. Still needs some review.

@krusynth

Copy link
Copy Markdown
Member Author

And git still doesn't have a good way of rolling back a merge with history that overlaps other commits. Sooooo.

@waldoj

waldoj commented Mar 12, 2017 •

Copy link
Copy Markdown
Member

Eh, it'll all be reviewed properly, once I get openva/va-decoded#42 done. I read through all of your commits here, but that's not quite the same as actually testing it. :)

@krusynth

Copy link
Copy Markdown
Member Author

@krusynth
krusynth deleted the export-refactor branch April 24, 2017 15:10
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.

Allow downloading of the entire code, sections of code, and chapters of code, in EPUB, Word, and PDF formats

2 participants