1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 
<?php
namespace Omeka\Installation\Task;

use Omeka\Installation\Installer;
use Zend\Session\Container;

/**
 * Task to destroy the session.
 */
class DestroySessionTask implements TaskInterface
{
    public function perform(Installer $installer)
    {
        $sessionManager = Container::getDefaultManager();
        $sessionManager->start();
        // Must explicitly clear storage since the session manager will
        // repopulate the session with old storage data.
        $sessionManager->destroy(['clear_storage' => true]);
    }
}