Skip to content

Commit 6feba96

Browse files
no message
1 parent a173a3f commit 6feba96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

registration.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22
use Magento\Framework\Component\ComponentRegistrar as R;
33
R::register(R::MODULE, 'Dfe_Moip', __DIR__);
4-
// 2017-04-25
5-
// К сожалению, прямолинейным образом вынести этот код
6-
// в повторноиспользуемую функцию df_lib() не получается:
7-
// в эту точку программы мы попадаем раньше инициализации повторноиспользуемой функции.
8-
// @todo Надо подумать, как это сделать...
4+
// 2017-04-25, 2017-12-13
5+
// Unfortunately, I have not found a way to make this code reusable among my modules.
6+
// I tried to move this code to a `/lib` function like df_lib(), but it raises a «chicken and egg» problem,
7+
// because Magento runs the `registration.php` scripts before any `/lib` functions are initalized,
8+
// whereas the `/lib` functions are initalized from the `registration.php` scripts.
99
$base = dirname(__FILE__); /** @var string $base */
1010
if (is_dir($libDir = "{$base}/lib")) { /** @var string $libDir */
1111
// 2015-02-06

0 commit comments

Comments
 (0)