From 2aa75d758c11cef04a5b41e4a7e889ac9c45df8d Mon Sep 17 00:00:00 2001 From: Franco Springveldt Date: Tue, 12 Sep 2017 11:51:17 +1200 Subject: [PATCH] FIX changed MultiForm namespace --- README.md | 8 ++++---- src/{Models => Forms}/MultiForm.php | 6 +++--- tests/MultiFormTest.php | 2 +- tests/Stubs/MultiFormTestForm.php | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename src/{Models => Forms}/MultiForm.php (99%) diff --git a/README.md b/README.md index 36bd4c2..4ea268d 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ First of all, we need to create a new subclass of *MultiForm*. For the above example, our multi-form will be called *SurveyForm* ```php -use SilverStripe\MultiForm\Models\MultiForm; +use SilverStripe\MultiForm\Forms\MultiForm; class SurveyForm extends MultiForm { @@ -127,7 +127,7 @@ subclass of MultiForm, SurveyForm, and tell it that SurveyFormPersonalDetailsSte is the first step. ```php -use SilverStripe\MultiForm\Models\MultiForm; +use SilverStripe\MultiForm\Forms\MultiForm; class SurveyForm extends MultiForm { @@ -393,7 +393,7 @@ So, we must write some code on our subclass of *MultiForm*, overloading Here is an example of what we could do here: ```php -use SilverStripe\MultiForm\Models\MultiForm; +use SilverStripe\MultiForm\Forms\MultiForm; use SilverStripe\Forms\FieldList; use SilverStripe\Forms\EmailField; @@ -580,7 +580,7 @@ For example: ```php use SilverStripe\Dev\Debug; -use SilverStripe\MultiForm\Models\MultiForm; +use SilverStripe\MultiForm\Forms\MultiForm; use SilverStripe\MultiForm\Models\MultiFormStep; class SurveyForm extends MultiForm diff --git a/src/Models/MultiForm.php b/src/Forms/MultiForm.php similarity index 99% rename from src/Models/MultiForm.php rename to src/Forms/MultiForm.php index 0c8e158..75e5ee2 100644 --- a/src/Models/MultiForm.php +++ b/src/Forms/MultiForm.php @@ -1,20 +1,20 @@