public function __construct(FormFactory $factory, ImageManager $imageManager) { parent::__construct(); $this->factory = $factory; $imageManager->setMode(ImageManager::MODE_PLATFORM); $this->imageManager = $imageManager; $this->platform = new Platform(); }