HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
840 stars 125 forks source link

Introduce Controllers #62

Closed birkett closed 5 years ago

birkett commented 6 years ago

This PR introduces controllers. Code from core.php and pictsharemodel.php has been moved into the controllers (and AbstractController where it's shared between controllers).

This also adds:

There should be no breaking changes in this PR. Using PHP 7.0 all over now, so no going back. As per normal with these PR's - a full test is needed before merging. Unit tests are going to help with this.

(branched from #61 - linking to #57)

Dev notes for the future: Classes/, Controllers/, Models/ will eventually move into src/ Tests eventually rename to tests Web assets and servable content move into public/

geek-at commented 6 years ago

have you confirmed that all existing features still work with this?