{"action":"created","issue":{"url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/43","repository_url":"https://api.github.com/repos/prolic/HumusAmqpModule","labels_url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/43/comments","events_url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/43/events","html_url":"https://github.com/prolic/HumusAmqpModule/issues/43","id":232017043,"number":43,"title":"Migration from ZF2 to ZF3","user":{"login":"marinovdf","id":2156373,"avatar_url":"https://avatars2.githubusercontent.com/u/2156373?v=3","gravatar_id":"","url":"https://api.github.com/users/marinovdf","html_url":"https://github.com/marinovdf","followers_url":"https://api.github.com/users/marinovdf/followers","following_url":"https://api.github.com/users/marinovdf/following{/other_user}","gists_url":"https://api.github.com/users/marinovdf/gists{/gist_id}","starred_url":"https://api.github.com/users/marinovdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinovdf/subscriptions","organizations_url":"https://api.github.com/users/marinovdf/orgs","repos_url":"https://api.github.com/users/marinovdf/repos","events_url":"https://api.github.com/users/marinovdf/events{/privacy}","received_events_url":"https://api.github.com/users/marinovdf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-29T13:00:57Z","updated_at":"2017-05-29T16:17:01Z","closed_at":null,"body":"I have migrated my app from ZF2 to ZF3, but HumusAmqpModule now is not working.\r\nI had version `v0.3.1` before and config like this:\r\n```\r\nreturn [\r\n    'controllers' => [\r\n        'factories' => [\r\n            TopicProducerController::class => TopicProducerControllerFactory::class,\r\n        ]\r\n    ],\r\n\r\n    'humus_amqp_module' => [\r\n        'exchanges' => [\r\n            'opm-exchange' => [\r\n                'name' => 'opm-exchange',\r\n                'type' => 'direct',\r\n                'arguments' => [],\r\n            ],\r\n            'demo.error' => [\r\n                'name' => 'demo.error',\r\n                'type' => 'direct',\r\n                'arguments' => [],\r\n            ],\r\n        ],\r\n        'queues' => [\r\n            'opm-mail' => [\r\n                'name' => 'opm-mail-queue',\r\n                'exchange' => 'opm-exchange',\r\n                'routing_keys' => [],\r\n                'arguments' => [\r\n                    'x-dead-letter-exchange' => 'demo.error' // must be defined as exchange before\r\n                ],\r\n                'bind_arguments' => [],\r\n            ],\r\n        ],\r\n        'connections' => [\r\n            'default' => [\r\n                'host' => 'localhost',\r\n                'port' => 5672,\r\n                'login' => 'guest',\r\n                'password' => 'guest',\r\n                'vhost' => '/',\r\n                'persistent' => true,\r\n                'read_timeout' => 1, //sec, float allowed\r\n                'write_timeout' => 1, //sec, float allowed\r\n            ],\r\n        ],\r\n        'producers' => [\r\n            'opm-producer' => [\r\n                'exchange' => 'opm-exchange',\r\n                'qos' => [\r\n                    'prefetch_size' => 0,\r\n                    'prefetch_count' => 10\r\n                ],\r\n                'auto_setup_fabric' => true\r\n            ],\r\n        ],\r\n        'consumers' => [\r\n            'opm-consumer' => [\r\n                'queues' => [\r\n                    'opm-mail'\r\n                ],\r\n                'auto_setup_fabric' => true,\r\n                'callback' => 'mail',\r\n                'idle_timeout' => 10,\r\n                'logger' => 'consumer-logger',\r\n                'error_callback' => 'errorcallback'\r\n            ],\r\n        ],\r\n\r\n        'plugin_managers' => [\r\n            'callback' => [\r\n                'invokables' => [\r\n                    'echo'          => EchoCallback::class,\r\n                    'error'         => EchoErrorCallback::class,\r\n                    'poweroftwo'    => PowerOfTwoCallback::class,\r\n                    'randomint'     => RandomIntCallback::class,\r\n                    'errorcallback' => ErrorCallback::class,\r\n                ],\r\n\r\n                'factories' => [\r\n                    'mail' => MailCallbackFactory::class\r\n                ]\r\n            ]\r\n        ]\r\n    ],\r\n];\r\n```\r\nAfter migration my composer.json looks like that:\r\n```\r\n{\r\n  \"require\": {\r\n    \"php\": \"~7.0\",\r\n    \"ext-amqp\": \">=1.7.0\",\r\n    \"ext-zip\": \"*\",\r\n    \"ext-intl\": \"*\",\r\n    \"ext-mbstring\": \"*\",\r\n    \"ext-gd\": \"*\",\r\n    \"ext-xml\": \"*\",\r\n    \"ext-curl\": \"*\",\r\n    \"ext-bcmath\": \"*\",\r\n    \"roave/security-advisories\": \"dev-master\",\r\n    \"zendframework/zendframework\": \"^3.0\",\r\n    \"zendframework/zend-mvc-console\": \"^1.1\",\r\n    \"phpoffice/phpexcel\": \"dev-master\",\r\n    \"imagine/Imagine\": \"dev-master\",\r\n    \"php-amqplib/php-amqplib\": \"2.6.2\",\r\n    \"prolic/humus-amqp\": \"^1.1\",\r\n    \"prolic/humus-amqp-module\": \"^1.0\",\r\n    ...\r\n  }\r\n}\r\n```\r\nAlso in `application.config.php` in `modules` section added `HumusAmqpModule`\r\n\r\nWhat I need to change to make everything work.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/comments/304695229","html_url":"https://github.com/prolic/HumusAmqpModule/issues/43#issuecomment-304695229","issue_url":"https://api.github.com/repos/prolic/HumusAmqpModule/issues/43","id":304695229,"user":{"login":"marinovdf","id":2156373,"avatar_url":"https://avatars2.githubusercontent.com/u/2156373?v=3","gravatar_id":"","url":"https://api.github.com/users/marinovdf","html_url":"https://github.com/marinovdf","followers_url":"https://api.github.com/users/marinovdf/followers","following_url":"https://api.github.com/users/marinovdf/following{/other_user}","gists_url":"https://api.github.com/users/marinovdf/gists{/gist_id}","starred_url":"https://api.github.com/users/marinovdf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marinovdf/subscriptions","organizations_url":"https://api.github.com/users/marinovdf/orgs","repos_url":"https://api.github.com/users/marinovdf/repos","events_url":"https://api.github.com/users/marinovdf/events{/privacy}","received_events_url":"https://api.github.com/users/marinovdf/received_events","type":"User","site_admin":false},"created_at":"2017-05-29T16:17:01Z","updated_at":"2017-05-29T16:17:01Z","body":"I'he edited my config:\r\n```\r\nreturn [\r\n    'controllers' => [\r\n        'factories' => [\r\n            TopicProducerController::class => TopicProducerControllerFactory::class,\r\n        ]\r\n    ],\r\n\r\n    'dependencies' => [\r\n        Driver::class => DriverFactory::class,\r\n        'default-amqp-connection' => [ConnectionFactory::class, 'default'],\r\n        'opm-consumer' => [CallbackConsumerFactory::class, 'opm-consumer'],\r\n        'opm-producer' => [ProducerFactory::class, 'opm-producer'],\r\n        'mail-callback' => MailCallbackFactory::class\r\n    ],\r\n\r\n    'humus' => [\r\n        'amqp' => [\r\n            'driver' => Driver::AMQP_EXTENSION,\r\n            'connection' => [\r\n                'default' => [\r\n                    'host' => 'localhost',\r\n                    'port' => 5672,\r\n                    'login' => 'guest',\r\n                    'password' => 'guest',\r\n                    'vhost' => '/',\r\n                    'persistent' => false,\r\n                    'read_timeout' => 3,\r\n                    'write_timeout' => 1\r\n                ],\r\n            ],\r\n            'exchange' => [\r\n                'opm-exchange' => [\r\n                    'name' => 'opm-exchange',\r\n                    'type' => 'direct',\r\n                    'connection' => 'default-amqp-connection',\r\n                    'auto_setup_fabric' => true,\r\n                 ]\r\n            ],\r\n            'producer' => [\r\n                'opm-producer' => [\r\n                    'exchange' => 'opm-exchange',\r\n                    'qos' => [\r\n                        'prefetch_size' => 0,\r\n                        'prefetch_count' => 10\r\n                    ],\r\n                    'auto_setup_fabric' => true\r\n                ],\r\n            ],\r\n            'queue' => [\r\n                'opm-mail' => [\r\n                    'name' => 'opm-mail',\r\n                    'exchanges' => [\r\n                        'opm-exchange' => []\r\n                    ],\r\n                    'connection' => 'default-amqp-connection'\r\n                ],\r\n            ],\r\n            'callback_consumer' => [\r\n                'opm-consumer' => [\r\n                    'queue' => 'opm-queue',\r\n                    'idle_timeout' => 12.5,\r\n                    'consumer_tag' => 'opm-consumer-tag',\r\n                    'qos' => [\r\n                        'prefetch_count' => 50,\r\n                    ],\r\n                ],\r\n            ],\r\n        ]\r\n    ],\r\n];\r\n```\r\nafter run `vendor/bin/humus-amqp-module setup-fabric` fabric successfully installed.\r\nBut after run `vendor/bin/humus-amqp-module consumer -c opm-consumer` I see `No consumer with name opm-consumer found`."}}
{"actor":{"display_login":"marinovdf"}}