public function activateDomainAction(Domain $domain)
    {
        $domain->setActive(true);
        $this->domainRepository->update($domain);
        $this->addFlashMessage('The domain "%s" has been activated.', 'Domain activated', Message::SEVERITY_OK, [htmlspecialchars($domain)], 1412373539);
        $this->unsetLastVisitedNodeAndRedirect('edit', null, null, ['site' => $domain->getSite()]);
    }
public function activateDomainAction(Domain $domain)
    {
        $domain->setActive(true);
        $this->domainRepository->update($domain);
        $this->addFlashMessage('The domain "%s" has been activated.', 'Domain activated', Message::SEVERITY_OK, [htmlspecialchars($domain)], 1412373539);
        $this->unsetLastVisitedNodeAndRedirect('edit', null, null, ['site' => $domain->getSite()]);
    }
public function activateDomainAction ( Domain $ domain ) { $ domain -> setActive ( true ) ; $ this -> domainRepository -> update ( $ domain ) ; $ this -> addFlashMessage ( 'The domain "%s" has been activated.' , 'Domain activated' , Message :: SEVERITY_OK , [ htmlspecialchars ( $ domain ) ] , 1412373539 ) ; $ this -> unsetLastVisitedNodeAndRedirect ( 'edit' , null , null , [ 'site' => $ domain -> getSite ( ) ] ) ; }
Activates a domain

@param Domain $domain Domain to activate
@Flow\IgnoreValidation("$domain")
@return void
Activates a domain