/** * @param mixed $old_state State returned by previous call of this method * @return mixed Returns false after last step, otherwise temporary state */ function enable_step($old_state) { switch ($old_state) { case '': // Empty means nothing has run yet // create directory $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->create(); return '1'; break; default: return parent::enable_step($old_state); break; } }