Condition에 Date 추가.
Condition에 logic 단축 명령 추가
This commit is contained in:
@@ -10,7 +10,13 @@ abstract class Condition{
|
||||
return $conditionChain;
|
||||
}
|
||||
|
||||
$className = 'sammo\\Event\\Condition\\'.$conditionChain[0];
|
||||
$key = $conditionChain[0];
|
||||
if(\array_key_exists(strtolower($key), Condition\Logic::AVAILABLE_LOGIC_NAME)){
|
||||
//logic 단축 명령.
|
||||
return new Condition\Logic($key, array_slice($conditionChain, 1));
|
||||
}
|
||||
|
||||
$className = 'sammo\\Event\\Condition\\'.$key;
|
||||
if(class_exists($className)){
|
||||
$args = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user