-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from vaniocz/master
PHP7 & Symfony3 compatibility
- Loading branch information
Showing
53 changed files
with
395 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,4 @@ | |
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsFalse() { | ||
this.message = ''; | ||
|
||
this.validate = function (value) { | ||
var errors = []; | ||
if ('' !== value && false !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} | ||
var SymfonyComponentValidatorConstraintsFalse = SymfonyComponentValidatorConstraintsIsFalse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Checks if value is (bool) false | ||
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsIsFalse() { | ||
this.message = ''; | ||
|
||
this.validate = function (value) { | ||
var errors = []; | ||
if ('' !== value && false !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Checks if value is null | ||
* @constructor | ||
* @author [email protected] | ||
*/ | ||
function SymfonyComponentValidatorConstraintsIsNull() { | ||
this.message = ''; | ||
|
||
this.validate = function(value) { | ||
var errors = []; | ||
if (null !== value) { | ||
errors.push(this.message.replace('{{ value }}', FpJsBaseConstraint.formatValue(value))); | ||
} | ||
|
||
return errors; | ||
} | ||
} |
Oops, something went wrong.