for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\Switching;
class HeyManSwitcher
{
public function wrapForIgnorance(callable $callback, $key): \Closure
return function (...$args) use ($callback, $key) {
if (!config('heyman_ignore_'.$key, false)) {
$callback(...$args);
}
};