Skip to content

Instantly share code, notes, and snippets.

@esimonetti
Created January 31, 2018 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esimonetti/26648e319ae04e601a53f819de50121b to your computer and use it in GitHub Desktop.
Save esimonetti/26648e319ae04e601a53f819de50121b to your computer and use it in GitHub Desktop.
Disable network card's mac address query on guid/uuid generation
<?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;
}
}
<?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