예제 #1
0
파일: Seed.php 프로젝트: alterfw/hero
 function __construct($folder)
 {
     $self = $this;
     parent::__construct(null, [$folder]);
     parent::handle('\\Hero\\Core\\Seeder', function ($_app, $instance) use($self) {
         array_push($self->instances, $instance);
     });
     $this->load();
 }
예제 #2
0
파일: Model.php 프로젝트: alterfw/hero
 function __construct()
 {
     $folder = !defined('HERO_MODELS') ? 'model' : HERO_MODELS;
     parent::__construct(null, [$folder]);
     $this->load();
 }
예제 #3
0
 function __construct()
 {
     $folder = !defined('ALTER_OPTIONS') ? 'option' : ALTER_OPTIONS;
     parent::__construct(null, [$folder]);
     $this->load();
 }