Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Dec 13, 2017
1 parent a173a3f commit 6feba96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions registration.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
use Magento\Framework\Component\ComponentRegistrar as R;
R::register(R::MODULE, 'Dfe_Moip', __DIR__);
// 2017-04-25
// К сожалению, прямолинейным образом вынести этот код
// в повторноиспользуемую функцию df_lib() не получается:
// в эту точку программы мы попадаем раньше инициализации повторноиспользуемой функции.
// @todo Надо подумать, как это сделать...
// 2017-04-25, 2017-12-13
// Unfortunately, I have not found a way to make this code reusable among my modules.
// I tried to move this code to a `/lib` function like df_lib(), but it raises a «chicken and egg» problem,
// because Magento runs the `registration.php` scripts before any `/lib` functions are initalized,
// whereas the `/lib` functions are initalized from the `registration.php` scripts.
$base = dirname(__FILE__); /** @var string $base */
if (is_dir($libDir = "{$base}/lib")) { /** @var string $libDir */
// 2015-02-06
Expand Down

0 comments on commit 6feba96

Please sign in to comment.