Skip to content

Commit 15ef204

Browse files
author
Tom Combet
committed
Sync uncommitted production changes
Production carried source changes (as of the 2025-11 prod export) that were never pushed to GitHub. This commit brings main in line with the deployed production code (source files only; build artifacts, generated translations and vendor excluded).
1 parent 8da5964 commit 15ef204

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

kjblocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function __construct()
5050
{
5151
$this->name = 'kjblocks';
5252
$this->tab = 'others';
53-
$this->version = '1.3.0';
53+
$this->version = '1.2.1';
5454
$this->author = 'Kaudaj';
5555
$this->ps_versions_compliancy = ['min' => '1.7.8.0', 'max' => '8.2.99'];
5656

src/BlockTypeProviderFactory.php

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
/**
3+
* Copyright since 2019 Kaudaj
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
8+
* that is bundled with this package in the file LICENSE.md.
9+
* It is also available through the world-wide-web at this URL:
10+
* https://opensource.org/licenses/AFL-3.0
11+
* If you did not receive a copy of the license and are unable to
12+
* obtain it through the world-wide-web, please send an email
13+
* to info@kaudaj.com so we can send you a copy immediately.
14+
*
15+
* @author Kaudaj <info@kaudaj.com>
16+
* @copyright Since 2019 Kaudaj
17+
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
18+
*/
19+
20+
declare(strict_types=1);
21+
22+
namespace Kaudaj\Module\Blocks;
23+
24+
class BlockTypeProviderFactory
25+
{
26+
/**
27+
* @var int
28+
*/
29+
protected $contextLangId;
30+
31+
/**
32+
* @var BlockContext
33+
*/
34+
protected $blockContext;
35+
36+
public function __construct(int $contextLangId, BlockContext $blockContext)
37+
{
38+
$this->contextLangId = $contextLangId;
39+
$this->blockContext = $blockContext;
40+
}
41+
42+
// @phpstan-ignore-next-line
43+
public function create(string $hookName): BlockTypeProvider
44+
{
45+
return new BlockTypeProvider($this->contextLangId, $this->blockContext, $hookName);
46+
}
47+
}

0 commit comments

Comments
 (0)