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
class Validator { | |
static Map<String, Function> _rules = { | |
'required': (String value) { | |
if (value.isEmpty) return false; | |
return true; | |
}, | |
// extends to support more rules, | |
// such as between:1,10 | |
// min:1 |
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
0469dbbaf9f68ed3399796237d05949e90cb5408e66332c228ee83a605fb0c25f0f6666cb2ebf750532466bb90f5b7555b970d13c402e070e4c0d400c39745890c |
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
opcache.enable=1 | |
opcache.memory_consumption=512 | |
opcache.interned_strings_buffer=64 | |
opcache.max_accelerated_files=20000 | |
opcache.validate_timestamps=0 | |
opcache.save_comments=1 | |
opcache.fast_shutdown=1 |