Files
Phraseanet/lib/Alchemy/Phrasea/Command/Setup/CheckEnvironment.php
Aina Sitraka 59a60ba8ac PHRAS-3796 bin/setup check:system - download , lazaret, wrong repo is checked (#4349)
* fix directory check

* fix test

* PHRAS-3882 change filter order
2023-07-26 20:48:06 +02:00

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(),
];
}
}