Skip to content

Commit c855889

Browse files
committed
removed deprecated stuff
1 parent 22d8f35 commit c855889

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

src/Bridges/FormsLatte/FormMacros.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,4 @@ public function macroInputError(MacroNode $node, PhpWriter $writer)
237237
}
238238
}
239239

240-
241-
/** @deprecated */
242-
public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
243-
{
244-
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormBegin()', E_USER_DEPRECATED);
245-
echo Runtime::renderFormBegin($form, $attrs, $withTags);
246-
}
247-
248-
249-
/** @deprecated */
250-
public static function renderFormEnd(Form $form, $withTags = TRUE)
251-
{
252-
trigger_error(__METHOD__ . '() is deprecated, use Nette\Bridges\FormsLatte\Runtime::renderFormEnd()', E_USER_DEPRECATED);
253-
echo Runtime::renderFormEnd($form, $withTags);
254-
}
255-
256240
}

src/Forms/Form.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class Form extends Container implements Nette\Utils\IHtmlString
3333
REQUIRED = self::FILLED,
3434
VALID = ':valid';
3535

36-
/** @deprecated CSRF protection */
37-
const PROTECTION = Controls\CsrfProtection::PROTECTION;
38-
3936
// button
4037
const SUBMITTED = ':submitted';
4138

src/Forms/Rules.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class Rules implements \IteratorAggregate
1717
{
1818
use Nette\SmartObject;
1919

20-
/** @deprecated */
21-
public static $defaultMessages;
22-
2320
/** @var Rule|FALSE|NULL */
2421
private $required;
2522

@@ -341,5 +338,3 @@ private static function getCallback(Rule $rule)
341338
}
342339

343340
}
344-
345-
Rules::$defaultMessages = & Validator::$messages;

src/Forms/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Validator
2121

2222
/** @var array */
2323
public static $messages = [
24-
Form::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
24+
Controls\CsrfProtection::PROTECTION => 'Your session has expired. Please return to the home page and try again.',
2525
Form::EQUAL => 'Please enter %s.',
2626
Form::NOT_EQUAL => 'This value should not be %s.',
2727
Form::FILLED => 'This field is required.',

0 commit comments

Comments
 (0)