public function install(Direction\ComposerInterface $directionComposer, Monitor\ComposerInterface $monitorComposer, $pluginParams = array()) { foreach (self::directions() as $pair) { $directionComposer->writeClassDeclaration($pair[0], $pair[1], 'new Plugin\\Imagemagick\\Converter', 'new Plugin\\Imagemagick\\Command'); } $monitorComposer->writeClassDeclaration('Imagemagick'); }
public function install(Direction\ComposerInterface $directionComposer, Monitor\ComposerInterface $monitorComposer, $pluginParams = array()) { foreach (self::directions() as $pair) { $directionComposer->writeClassDeclaration($pair[0], eval('return ' . $pair[1] . ';'), 'new Plugin\\Openoffice\\Converter'); } $monitorComposer->writeClassDeclaration('Openoffice'); }