public function onPrepareWorkspaceConstructWorkspaceInstance(WorkspaceEvent $event, $eventName, EventDispatcherInterface $eventDispatcher)
    {
        $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Creating Workspace.', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_IN_PROGRESS)));

        $workspace = new Workspace($event->getHost());
        $workspace->setReleasesDirectory($this->releasesDirectory);
        $workspace->setDataDirectory($this->dataDirectory);
        $workspace->setCacheDirectory($this->cacheDirectory);
        $workspace->setOtherDirectories($this->otherDirectories);

        $event->setWorkspace($workspace);

        $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Created Workspace.', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_COMPLETED, 'output.resetLine' => true)));
    }
public function onPrepareWorkspaceConstructWorkspaceInstance(WorkspaceEvent $event, $eventName, EventDispatcherInterface $eventDispatcher)
    {
        $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Creating Workspace.', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_IN_PROGRESS)));

        $workspace = new Workspace($event->getHost());
        $workspace->setReleasesDirectory($this->releasesDirectory);
        $workspace->setDataDirectory($this->dataDirectory);
        $workspace->setCacheDirectory($this->cacheDirectory);
        $workspace->setOtherDirectories($this->otherDirectories);

        $event->setWorkspace($workspace);

        $eventDispatcher->dispatch(AccompliEvents::LOG, new LogEvent(LogLevel::NOTICE, 'Created Workspace.', $eventName, $this, array('event.task.action' => TaskInterface::ACTION_COMPLETED, 'output.resetLine' => true)));
    }
public function onPrepareWorkspaceConstructWorkspaceInstance ( WorkspaceEvent $ event , $ eventName , EventDispatcherInterface $ eventDispatcher ) { $ eventDispatcher -> dispatch ( AccompliEvents :: LOG , new LogEvent ( LogLevel :: NOTICE , 'Creating Workspace.' , $ eventName , $ this , array ( 'event.task.action' => TaskInterface :: ACTION_IN_PROGRESS ) ) ) ; $ workspace = new Workspace ( $ event -> getHost ( ) ) ; $ workspace -> setReleasesDirectory ( $ this -> releasesDirectory ) ; $ workspace -> setDataDirectory ( $ this -> dataDirectory ) ; $ workspace -> setCacheDirectory ( $ this -> cacheDirectory ) ; $ workspace -> setOtherDirectories ( $ this -> otherDirectories ) ; $ event -> setWorkspace ( $ workspace ) ; $ eventDispatcher -> dispatch ( AccompliEvents :: LOG , new LogEvent ( LogLevel :: NOTICE , 'Created Workspace.' , $ eventName , $ this , array ( 'event.task.action' => TaskInterface :: ACTION_COMPLETED , 'output.resetLine' => true ) ) ) ; }
Constructs a new Workspace instance and sets the Workspace on the event.

@param WorkspaceEvent           $event
@param string                   $eventName
@param EventDispatcherInterface $eventDispatcher
Constructs a new Workspace instance and sets the Workspace on the event .