Files
Phraseanet/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php
2013-07-12 18:40:12 +02:00

56 lines
1.5 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2013 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Command\Setup;
use Alchemy\Phrasea\Command\AbstractCheckCommand;
use Alchemy\Phrasea\Setup\Requirements\BinariesRequirements;
use Alchemy\Phrasea\Setup\Requirements\CacheServerRequirement;
use Alchemy\Phrasea\Setup\Requirements\FilesystemRequirements;
use Alchemy\Phrasea\Setup\Requirements\LocalesRequirements;
use Alchemy\Phrasea\Setup\Requirements\OpcodeCacheRequirement;
use Alchemy\Phrasea\Setup\Requirements\PhpRequirements;
use Alchemy\Phrasea\Setup\Requirements\PhraseaRequirements;
use Alchemy\Phrasea\Setup\Requirements\SystemRequirements;
class CheckEnvironment extends AbstractCheckCommand
{
const CHECK_OK = 0;
const CHECK_WARNING = 1;
const CHECK_ERROR = 2;
public function __construct($name = null)
{
parent::__construct($name);
$this->setDescription("Check environment");
return $this;
}
/**
* {@inheritdoc}
*/
protected function provideRequirements()
{
return array(
new BinariesRequirements(),
new CacheServerRequirement(),
new FilesystemRequirements(),
new LocalesRequirements(),
new OpcodeCacheRequirement(),
new PhraseaRequirements(),
new PhpRequirements(),
new SystemRequirements(),
);
}
}