mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 18:14:35 +00:00
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2016 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\PhpRequirements;
|
|
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("Performs a check against the environment");
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function provideRequirements()
|
|
{
|
|
return [
|
|
new BinariesRequirements(),
|
|
new CacheServerRequirement(),
|
|
new FilesystemRequirements($this->container['conf']),
|
|
new LocalesRequirements(),
|
|
new PhpRequirements(),
|
|
new SystemRequirements(),
|
|
];
|
|
}
|
|
}
|