From 6446ece1747bbce53324352bf286cf81930dc6e8 Mon Sep 17 00:00:00 2001 From: Brian Porter Date: Wed, 22 Jul 2015 14:43:10 -0500 Subject: [PATCH 1/4] Typo correction. Closes #6 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1365374..dba4632 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Sets a `creator_id` and `modifier_id` on records during save using the logged in ### Composer ````bash -$ composer require loadsys/loadsys/cakephp-creatormodifier:~1.0 +$ composer require loadsys/cakephp-creatormodifier:~1.0 ```` From d2883fccb0059ccc7812ce5bdf203515bc776130 Mon Sep 17 00:00:00 2001 From: Brian Porter Date: Wed, 22 Jul 2015 14:43:31 -0500 Subject: [PATCH 2/4] Remove unused AppController. Closes #2 --- src/Controller/AppController.php | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/Controller/AppController.php diff --git a/src/Controller/AppController.php b/src/Controller/AppController.php deleted file mode 100644 index e6c555c..0000000 --- a/src/Controller/AppController.php +++ /dev/null @@ -1,8 +0,0 @@ - Date: Wed, 22 Jul 2015 14:48:26 -0500 Subject: [PATCH 3/4] Simplify routes file. Closes #3 --- config/routes.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config/routes.php b/config/routes.php index e4d47d9..ea707a4 100644 --- a/config/routes.php +++ b/config/routes.php @@ -1,6 +1,2 @@ fallbacks('InflectedRoute'); -}); +// No routes necessary for this plugin. From 694344512685692082ce0e3f58e38647942f1849 Mon Sep 17 00:00:00 2001 From: Brian Porter Date: Wed, 22 Jul 2015 14:54:43 -0500 Subject: [PATCH 4/4] Remove references to Crud plugin. Closes #4 --- tests/bootstrap.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index f619a9e..56801aa 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -38,7 +38,7 @@ require ROOT . '/vendor/autoload.php'; require CORE_PATH . 'config/bootstrap.php'; -Cake\Core\Configure::write('App', ['namespace' => 'Crud\Test\App']); +Cake\Core\Configure::write('App', ['namespace' => 'CreatorModifier']); Cake\Core\Configure::write('debug', true); $TMP = new \Cake\Filesystem\Folder(TMP); @@ -52,14 +52,14 @@ ], '_cake_core_' => [ 'className' => 'File', - 'prefix' => 'crud_myapp_cake_core_', + 'prefix' => 'creatormodifier_cake_core_', 'path' => CACHE . 'persistent/', 'serialize' => true, 'duration' => '+10 seconds' ], '_cake_model_' => [ 'className' => 'File', - 'prefix' => 'crud_my_app_cake_model_', + 'prefix' => 'creatormodifier_cake_model_', 'path' => CACHE . 'models/', 'serialize' => 'File', 'duration' => '+10 seconds' @@ -71,8 +71,6 @@ 'defaults' => 'php' ]); -Cake\Core\Plugin::load('Crud', ['path' => ROOT . DS, 'autoload' => true]); - Cake\Routing\DispatcherFactory::add('Routing'); Cake\Routing\DispatcherFactory::add('ControllerFactory');