SatisAdmin\Console\RemoveUserCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $app = $this->getApp();
        $users = json_decode(file_get_contents($app['app.users_file']), true);
        unset($users[$input->getArgument('username')]);
        file_put_contents($app['app.users_file'], json_encode($users, JSON_PRETTY_PRINT));
        $app->log('User removed', ['user' => $input->getArgument('username')], Logger::INFO);
    }
RemoveUserCommand