diff --git a/src/bootstrap.php b/src/bootstrap.php index 7176d2c..31c5c12 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -23,14 +23,14 @@ $path = dirname(__FILE__); $file = ''; switch ($className) { - case 'WikiControllerFactory': - case 'WikiPageController': - case 'WikiViewFactory': - $file = "$path/inc/$className.php"; + case 'PanaceaControllerFactory': + case 'PanaceaPageController': + case 'PanaceaViewFactory': + $file = "$path/lib/$className.php"; break; - case 'WikiPageView': - $file = "$path/inc/views/$className.php"; + case 'PanaceaPageView': + $file = "$path/lib/views/$className.php"; break; } diff --git a/src/lib/PanaceaControllerFactory.php b/src/lib/PanaceaControllerFactory.php index 21c6838..608ac2f 100644 --- a/src/lib/PanaceaControllerFactory.php +++ b/src/lib/PanaceaControllerFactory.php @@ -1,11 +1,11 @@ WikiControllerFactory instance + * The PanaceaControllerFactory instance * - * @var Dispatcher + * @var PanaceaControllerFactory */ protected static $instance = null; @@ -33,7 +33,7 @@ * @author Tommy Montgomery * @since 2008-10-05 * - * @return ControllerFactory + * @return PanaceaControllerFactory */ public static function getInstance() { if (self::$instance === null) { @@ -52,14 +52,14 @@ * * @param array $uriFragments The URI fragments * @throws {@link ClassNotFoundException} - * @return WikiPageController + * @return PanaceaPageController */ public function getController(array $uriFragments) { if (count($uriFragments) !== 1) { throw new InvalidTypeException(1, 'array of size 1', $uriFragments); } - return new WikiPageController($uriFragments[0]); + return new PanaceaPageController($uriFragments[0]); } } diff --git a/src/lib/PanaceaPageController.php b/src/lib/PanaceaPageController.php index 9cf1010..6053121 100644 --- a/src/lib/PanaceaPageController.php +++ b/src/lib/PanaceaPageController.php @@ -1,31 +1,31 @@ ::VIEWTYPE_* constants @@ -33,7 +33,7 @@ */ public function __construct($page = '', $viewType = View::VIEWTYPE_HTML) { parent::__construct($page, $viewType); - $this->viewFactory = WikiViewFactory::getInstance(); + $this->viewFactory = PanaceaViewFactory::getInstance(); } /** diff --git a/src/lib/PanaceaViewFactory.php b/src/lib/PanaceaViewFactory.php index 2ca34fe..173a59b 100644 --- a/src/lib/PanaceaViewFactory.php +++ b/src/lib/PanaceaViewFactory.php @@ -1,11 +1,11 @@