Namespace 실수 해결.
수동 Event 등록시 Date가 아니라 date로 입력했던 문제 해결
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace sammo\Event\Condition;
|
||||
|
||||
class Date extends sammo\Event\Condition{
|
||||
class Date extends \sammo\Event\Condition{
|
||||
|
||||
const AVAILABLE_CMP = [
|
||||
'=='=>true,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace sammo\Event\Condition;
|
||||
|
||||
class Logic extends sammo\Event\Condition{
|
||||
class Logic extends \sammo\Event\Condition{
|
||||
private $mode = 'and';
|
||||
private $conditions = [];
|
||||
const AVAILABLE_LOGIC_NAME = [
|
||||
|
||||
@@ -321,7 +321,7 @@ class Scenario{
|
||||
|
||||
$actions[] = ['DeleteEvent'];
|
||||
$this->events[] = [
|
||||
'cond'=>['date', '==', $targetYear, '1'],
|
||||
'cond'=>['Date', '==', $targetYear, '1'],
|
||||
'action'=>$actions
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user