| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This file is part of the Nette Framework (https://nette.org) |
| 5 |
* Copyright (c) 2004 David Grudl (https://davidgrudl.com) |
| 6 |
*/ |
| 7 |
declare (strict_types=1); |
| 8 |
namespace Packetery\Nette\DI\Config; |
| 9 |
|
| 10 |
use Packetery\Nette; |
| 11 |
/** |
| 12 |
* Configuration helpers. |
| 13 |
* @deprecated |
| 14 |
*/ |
| 15 |
final class Helpers |
| 16 |
{ |
| 17 |
use \Packetery\Nette\StaticClass; |
| 18 |
public const PREVENT_MERGING = '_prevent_merging'; |
| 19 |
/** @deprecated */ |
| 20 |
public static function merge($left, $right) |
| 21 |
{ |
| 22 |
return \Packetery\Nette\Schema\Helpers::merge($left, $right); |
| 23 |
} |
| 24 |
/** @deprecated */ |
| 25 |
public static function takeParent(&$data) : bool |
| 26 |
{ |
| 27 |
if (\is_array($data) && isset($data[self::PREVENT_MERGING])) { |
| 28 |
unset($data[self::PREVENT_MERGING]); |
| 29 |
return \true; |
| 30 |
} |
| 31 |
return \false; |
| 32 |
} |
| 33 |
} |
| 34 |
|