File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
use Magento \Framework \Component \ComponentRegistrar as R ;
3
3
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 .
9
9
$ base = dirname (__FILE__ ); /** @var string $base */
10
10
if (is_dir ($ libDir = "{$ base }/lib " )) { /** @var string $libDir */
11
11
// 2015-02-06
You can’t perform that action at this time.
0 commit comments