Exemple #1
0
 /**
  * @param mixed $old_state State returned by previous call of this method
  * @return mixed Returns false after last step, otherwise temporary state
  */
 function purge_step($old_state)
 {
     switch ($old_state) {
         case '':
             // Empty means nothing has run yet
             $phpbb_root_path = $this->container->getParameter('core.root_path');
             $user = $this->container->get('user');
             $customcode_directory = new customcode_directory($user, $phpbb_root_path);
             $customcode_directory->remove();
             return '1';
             break;
         default:
             return parent::purge_step($old_state);
             break;
     }
 }