skeeks\cms\checks\StatusVendorsCheck::init PHP Method

init() public method

public init ( )
    public function init()
    {
        $vendorDir = VENDOR_DIR;
        $this->name = \Yii::t('skeeks/cms', "Checking kernel and libraries modification");
        $txt1 = \Yii::t('skeeks/cms', 'Checks, changes kernel {cms} and third-party libraries (Folder {folder}). Folder location and the name given by the global constant VENDOR_DIR. For the current project:', ['cms' => 'cms', 'folder' => '/vendor']);
        $txt2 = \Yii::t('skeeks/cms', 'We strongly not recommend to modify the core of the project, as it can bring to the update failed, or your modifications will be removed during the upgrade process. That in turn may result in errors of work the project.');
        $txt3 = \Yii::t('skeeks/cms', 'To solve the problem, you can run the command in the console');
        $this->description = <<<HTML
<p>
{$txt1}
</p>
<p>
<code>{$vendorDir}</code>
</p>
<p>
{$txt2}
</p>
<p>{$txt3}:</p>
HTML;
        $this->errorText = \Yii::t('skeeks/cms', "Found modified kernel");
        $this->successText = \Yii::t('skeeks/cms', "The kernel has not been modified");
        parent::init();
    }
StatusVendorsCheck