From d4ed23d56b2f029c77eaf4871c75fbbaa622884d Mon Sep 17 00:00:00 2001 From: David Yell Date: Tue, 6 Oct 2015 21:23:15 +0100 Subject: [PATCH 1/3] Removed the removed rules from the docs --- docs/validation.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/validation.md b/docs/validation.md index cc9061c..19ecad2 100644 --- a/docs/validation.md +++ b/docs/validation.md @@ -12,26 +12,6 @@ In your validation function in your table class you'll need to add the validator provider('proffer', 'Proffer\Model\Validation\ProfferRules'); -// Check the filesize in bytes -$validator->add('photo', 'proffer', [ - 'rule' => ['filesize', 2000000], - 'provider' => 'proffer' -]) - -// Make sure the extension matches -->add('photo', 'proffer', [ - 'rule' => ['extension', ['jpg', 'jpeg', 'png']], - 'message' => 'Invalid extension', - 'provider' => 'proffer' -]) - -// Ensure that the upload is the correct mime type -->add('photo', 'proffer', [ - 'rule' => ['mimetype', ['image/jpeg', 'image/png']], - 'message' => 'Not the correct mime type', - 'provider' => 'proffer' -]) - // Set the thumbnail resize dimensions ->add('photo', 'proffer', [ 'rule' => ['dimensions', [ From b8f1c8afe39e93e5a683640c4e977d0b8de24f0d Mon Sep 17 00:00:00 2001 From: Owen Gerrard Date: Fri, 23 Oct 2015 15:39:26 +0100 Subject: [PATCH 2/3] Update examples.md Remove initialise method --- docs/examples.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index 3d539bb..e08f06e 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -39,12 +39,6 @@ $this->addBehavior('Proffer.Proffer', [ ]); $this->belongsTo('Users', ['foreignKey' => 'user_id', 'joinType' => 'INNER']); - -protected function _initializeSchema(\Cake\Database\Schema\Table $table) -{ - $table->columnType('image', 'proffer.file'); - return $table; -} ``` ###Entities From 96c438a52626a24d351c2447b58875afa87932cf Mon Sep 17 00:00:00 2001 From: David Yell Date: Tue, 28 Jun 2016 15:14:08 +0100 Subject: [PATCH 3/3] Update upgrading.md --- docs/upgrading.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/upgrading.md b/docs/upgrading.md index 5da8810..e20f7bd 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -4,6 +4,11 @@ will need to make and potential pitfalls. For more release information [please see the releases](https://github.com/davidyell/CakePHP3-Proffer/releases). +## 0.7.0 +[Release 0.7.0](https://github.com/davidyell/CakePHP3-Proffer/releases/tag/0.7.0) + +You should only encounter problems if you have a Transform class which depends upon the Imagine image library, which has been removed in this release. + ## 0.6.0 [Release 0.6.0](https://github.com/davidyell/CakePHP3-Proffer/releases/tag/0.6.0) @@ -32,4 +37,4 @@ changes. ## 0.3.0 [Release 0.3.0](https://github.com/davidyell/CakePHP3-Proffer/releases/tag/v0.3.0) -If you need to make the generation of thumbnails optional, this is now possible by updating the configuration. \ No newline at end of file +If you need to make the generation of thumbnails optional, this is now possible by updating the configuration.