for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Swm\Bundle\MailHookBundle\ApiService;
use Swm\Bundle\MailHookBundle\Hook\DefaultHook;
class SendgridApiService extends BaseApiService
{
/**
* @param array $hook
* @return HookInterface
*/
private function bindHook(array $hook)
return new DefaultHook($hook['event'], $hook['email'], 'sendgrid', $hook);
DefaultHook::__construct()
$eventDispatched
This check looks for function calls that miss required arguments.
}
* @return array<HookInterface>
public function bind()
$metaData = json_decode($this->request->getContent(), true);
return array_map(array($this, 'bindHook'), $metaData);
This check looks for function calls that miss required arguments.