Exemplo n.º 1
0
 /**
  * Deactivate extension
  *
  * @param Extension $extension
  */
 public function deactivate(Extension $extension)
 {
     $extensions = $this->settings->get('extensions', []);
     $extension->setActive(false);
     unset($extensions[$extension->getName()]);
     $this->settings->set('extensions', $extensions);
 }
 /**
  * Perform any final actions for the request lifecycle.
  *
  * @param  \Symfony\Component\HttpFoundation\Request $request
  * @param  \Symfony\Component\HttpFoundation\Response $response
  * @return void
  */
 public function terminate($request, $response)
 {
     $this->settings->save();
 }