Exemple #1
0
 /**
  * @param JigConfig $jigConfig
  * @param JigConverter $jigConverter
  */
 public function __construct(JigConfig $jigConfig, JigConverter $jigConverter = null)
 {
     if ($jigConverter == null) {
         $jigConverter = new JigConverter($jigConfig);
         // Add basic useful stuff to Jig
         $jigConverter->addDefaultPlugin('Jig\\Plugin\\BasicPlugin');
     }
     $this->jigConfig = clone $jigConfig;
     $this->jigConverter = $jigConverter;
 }
Exemple #2
0
 /**
  * @param $classname
  */
 public function addDefaultPlugin($classname)
 {
     $classname = (string) $classname;
     $this->jigConverter->addDefaultPlugin($classname);
 }