|
@@ -9,7 +9,6 @@ use Buzz\Message\RequestInterface as HttpRequestInterface;
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
|
use Symfony\Component\Console\Input\ArrayInput;
|
|
|
use Symfony\Component\Console\Output\BufferedOutput;
|
|
|
-use Symfony\Component\HttpKernel\KernelInterface;
|
|
|
|
|
|
class DeviceListener
|
|
|
{
|
|
@@ -65,7 +64,7 @@ class DeviceListener
|
|
|
|
|
|
$entity = $args->getEntity();
|
|
|
$cmd_args = array(
|
|
|
- 'type:' . get_class($entity),
|
|
|
+ '--type:' . get_class($entity),
|
|
|
'--id:' . $entity->getId(),
|
|
|
);
|
|
|
|
|
@@ -115,7 +114,7 @@ class DeviceListener
|
|
|
if ($entity instanceof DeviceInterface) {
|
|
|
if ($deviceId = $this->getRemoteDeviceId($entity)) {
|
|
|
$cmd_args = array(
|
|
|
- 'type:' . get_class($entity),
|
|
|
+ '--type:' . get_class($entity),
|
|
|
'--id:' . $entity->getId(),
|
|
|
'--url:' . $this->deviceDeletePostUrl,
|
|
|
'--method:' . HttpRequestInterface::METHOD_DELETE,
|
|
@@ -138,7 +137,7 @@ class DeviceListener
|
|
|
$entity = $args->getEntity();
|
|
|
if ($entity instanceof DeviceInterface) {
|
|
|
$cmd_args = array(
|
|
|
- 'type:' . get_class($entity),
|
|
|
+ '--type:' . get_class($entity),
|
|
|
'--id:' . $entity->getId(),
|
|
|
);
|
|
|
if ($deviceId = $this->getRemoteDeviceId($entity)) {
|