예제 #1
0
 public function castedCopy($class)
 {
     $copy = parent::castedCopy($class);
     if ($copy->hasMethod('setConfig')) {
         $config = $this->getConfig();
         foreach ($config as $k => $v) {
             $copy->setConfig($k, $v);
         }
     }
     return $copy;
 }