Created
January 31, 2018 00:38
-
-
Save esimonetti/26648e319ae04e601a53f819de50121b to your computer and use it in GitHub Desktop.
Disable network card's mac address query on guid/uuid generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enrico Simonetti | |
// enricosimonetti.com | |
// 2018-01-31 on 7.9.3.0 | |
// custom/logichooks/application/afterEntryPoint.php | |
class afterEntryPoint | |
{ | |
public function disableNetworkCard($event, $arguments) | |
{ | |
Rhumsaa\Uuid\Uuid::$ignoreSystemNode = true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enrico Simonetti | |
// enricosimonetti.com | |
// 2018-01-31 on 7.9.3.0 | |
// custom/Extension/application/Ext/LogicHooks/installer.afterEntryPoint.php | |
$hook_array['after_entry_point'][] = array( | |
1, | |
'Disable network card`s mac address query on guid/uuid generation', | |
'custom/logichooks/application/afterEntryPoint.php', | |
'afterEntryPoint', | |
'disableNetworkCard', | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment