Validation example

$fileSystem = new SwagUpdateFileSystem();
        $conn = $this->get(Connection::class);
        $checks = [
            new RegexCheck($userLang),
            new MySQLVersionCheck($namespace),
            new PHPVersionCheck($namespace),
            new EmotionTemplateCheck($conn$namespace),
            new PHPExtensionCheck($namespace),
            new WritableCheck($fileSystem$namespace),
            new LicenseCheck($conn$endpoint$this->getShopwareVersion()$namespace),
        ];
        $validation = new Validation($checks);

        $this->View()->assign([
            'success' => true,
            'data' => $validation->checkRequirements($data->checks),
        ]);
    }

    /** * @return void */
    public function pluginsAction()
    {

    public static function validation(?ValidationConfig $config = null, bool $getShared = true)
    {
        if ($getShared) {
            return static::getSharedInstance('validation', $config);
        }

        $config ??= config(ValidationConfig::class);

        return new Validation($config, AppServices::renderer());
    }

    /** * View cells are intended to let you insert HTML into view * that has been generated by any callable in the system. * * @return Cell */
    public static function viewcell(bool $getShared = true)
    {
        if ($getShared) {
            
Home | Imprint | This part of the site doesn't use cookies.