Source of file EnvironmentCheck.php
Size: 0,971 Bytes - Last Modified: 2021-12-23T10:30:03+00:00
/var/www/docs.ssmods.com/process/src/src/EnvironmentCheck.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?php namespace SilverStripe\EnvironmentCheck; /** * Interface for environment checks * * An environment check is a test that can be performed on a live environment. They differ from * unit tests in that they are designed to check the state of the environment/server, rather than * the code. * * Environment checks should *never* alter production data. * * Some things you might make environment checks for: * - Can I access the database? * - Are the right PHP modules installed? * - Are the file permissions correct? * * @package environmentcheck */ interface EnvironmentCheck { /** * @var int */ const ERROR = 3; /** * @var int */ const WARNING = 2; /** * @var int */ const OK = 1; /** * @return array Result with 'status' and 'message' keys. * * Status is EnvironmentCheck::ERROR, EnvironmentCheck::WARNING, or EnvironmentCheck::OK. */ public function check(); } |