{"action":"closed","number":30,"pull_request":{"url":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30","id":40806653,"html_url":"https://github.com/ezsystems/LegacyBridge/pull/30","diff_url":"https://github.com/ezsystems/LegacyBridge/pull/30.diff","patch_url":"https://github.com/ezsystems/LegacyBridge/pull/30.patch","issue_url":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/30","number":30,"state":"closed","locked":false,"title":"Fix the Installation and the Usage of the LegacyBridge","user":{"login":"Plopix","id":313532,"avatar_url":"https://avatars.githubusercontent.com/u/313532?v=3","gravatar_id":"","url":"https://api.github.com/users/Plopix","html_url":"https://github.com/Plopix","followers_url":"https://api.github.com/users/Plopix/followers","following_url":"https://api.github.com/users/Plopix/following{/other_user}","gists_url":"https://api.github.com/users/Plopix/gists{/gist_id}","starred_url":"https://api.github.com/users/Plopix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plopix/subscriptions","organizations_url":"https://api.github.com/users/Plopix/orgs","repos_url":"https://api.github.com/users/Plopix/repos","events_url":"https://api.github.com/users/Plopix/events{/privacy}","received_events_url":"https://api.github.com/users/Plopix/received_events","type":"User","site_admin":false},"body":"Not sure about the quality of this fix, but it was not easy to find ;-)\r\n\r\nApparently the _buildLegacyKernelHandlerWeb_ function is called by the Symfony command (through a Listener) and then if we are in CLI we got: 2 errors:\r\n\r\n*First*:\r\n```\r\n> Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache\r\n[Symfony\\Component\\DependencyInjection\\Exception\\InactiveScopeException]\r\n  You cannot create a service (\"request\") of an inactive scope (\"request”).\r\n```\r\n\r\nPretty logical: https://github.com/ezsystems/LegacyBridge/blob/master/mvc/Kernel/Loader.php#L157\r\n> The request doesn't exist in CLI.\r\n\r\n*Second*:\r\n```\r\n$ php ezpublish/console assets:install --symlink --relative -vvv\r\n  [InvalidArgumentException]\r\n  The target directory \"web\" does not exist.\r\n```\r\n\r\n> Same case here, it's a path issue.\r\n\r\nThe code below is needed for this 2 issues\r\n```php\r\nif ( PHP_SAPI == 'cli' )\r\n{\r\n     return $this->buildLegacyKernelHandlerCLI();\r\n}\r\n```\r\nBut we needed to go back in the good directory instead of the Web Directory (CLI)\r\n\r\nping @andrerom @lolautruche \r\n\r\n++\r\n","created_at":"2015-07-24T19:16:54Z","updated_at":"2015-08-31T15:11:21Z","closed_at":"2015-08-31T15:11:21Z","merged_at":null,"merge_commit_sha":"91a296fec2bb4ff85e481c85cdb7bbe39d5d813d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30/commits","review_comments_url":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30/comments","review_comment_url":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/30/comments","statuses_url":"https://api.github.com/repos/ezsystems/LegacyBridge/statuses/bb100de2603062de1c785ba824830b814ba4a6a4","head":{"label":"Plopix:patch-2","ref":"patch-2","sha":"bb100de2603062de1c785ba824830b814ba4a6a4","user":{"login":"Plopix","id":313532,"avatar_url":"https://avatars.githubusercontent.com/u/313532?v=3","gravatar_id":"","url":"https://api.github.com/users/Plopix","html_url":"https://github.com/Plopix","followers_url":"https://api.github.com/users/Plopix/followers","following_url":"https://api.github.com/users/Plopix/following{/other_user}","gists_url":"https://api.github.com/users/Plopix/gists{/gist_id}","starred_url":"https://api.github.com/users/Plopix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plopix/subscriptions","organizations_url":"https://api.github.com/users/Plopix/orgs","repos_url":"https://api.github.com/users/Plopix/repos","events_url":"https://api.github.com/users/Plopix/events{/privacy}","received_events_url":"https://api.github.com/users/Plopix/received_events","type":"User","site_admin":false},"repo":{"id":39650818,"name":"LegacyBridge","full_name":"Plopix/LegacyBridge","owner":{"login":"Plopix","id":313532,"avatar_url":"https://avatars.githubusercontent.com/u/313532?v=3","gravatar_id":"","url":"https://api.github.com/users/Plopix","html_url":"https://github.com/Plopix","followers_url":"https://api.github.com/users/Plopix/followers","following_url":"https://api.github.com/users/Plopix/following{/other_user}","gists_url":"https://api.github.com/users/Plopix/gists{/gist_id}","starred_url":"https://api.github.com/users/Plopix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plopix/subscriptions","organizations_url":"https://api.github.com/users/Plopix/orgs","repos_url":"https://api.github.com/users/Plopix/repos","events_url":"https://api.github.com/users/Plopix/events{/privacy}","received_events_url":"https://api.github.com/users/Plopix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Plopix/LegacyBridge","description":"eZ Platform bridge to eZ Publish Legacy","fork":true,"url":"https://api.github.com/repos/Plopix/LegacyBridge","forks_url":"https://api.github.com/repos/Plopix/LegacyBridge/forks","keys_url":"https://api.github.com/repos/Plopix/LegacyBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Plopix/LegacyBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Plopix/LegacyBridge/teams","hooks_url":"https://api.github.com/repos/Plopix/LegacyBridge/hooks","issue_events_url":"https://api.github.com/repos/Plopix/LegacyBridge/issues/events{/number}","events_url":"https://api.github.com/repos/Plopix/LegacyBridge/events","assignees_url":"https://api.github.com/repos/Plopix/LegacyBridge/assignees{/user}","branches_url":"https://api.github.com/repos/Plopix/LegacyBridge/branches{/branch}","tags_url":"https://api.github.com/repos/Plopix/LegacyBridge/tags","blobs_url":"https://api.github.com/repos/Plopix/LegacyBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Plopix/LegacyBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Plopix/LegacyBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Plopix/LegacyBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Plopix/LegacyBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/Plopix/LegacyBridge/languages","stargazers_url":"https://api.github.com/repos/Plopix/LegacyBridge/stargazers","contributors_url":"https://api.github.com/repos/Plopix/LegacyBridge/contributors","subscribers_url":"https://api.github.com/repos/Plopix/LegacyBridge/subscribers","subscription_url":"https://api.github.com/repos/Plopix/LegacyBridge/subscription","commits_url":"https://api.github.com/repos/Plopix/LegacyBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Plopix/LegacyBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Plopix/LegacyBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Plopix/LegacyBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Plopix/LegacyBridge/contents/{+path}","compare_url":"https://api.github.com/repos/Plopix/LegacyBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Plopix/LegacyBridge/merges","archive_url":"https://api.github.com/repos/Plopix/LegacyBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Plopix/LegacyBridge/downloads","issues_url":"https://api.github.com/repos/Plopix/LegacyBridge/issues{/number}","pulls_url":"https://api.github.com/repos/Plopix/LegacyBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/Plopix/LegacyBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/Plopix/LegacyBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Plopix/LegacyBridge/labels{/name}","releases_url":"https://api.github.com/repos/Plopix/LegacyBridge/releases{/id}","created_at":"2015-07-24T18:40:28Z","updated_at":"2015-07-24T18:40:28Z","pushed_at":"2015-07-24T19:09:12Z","git_url":"git://github.com/Plopix/LegacyBridge.git","ssh_url":"git@github.com:Plopix/LegacyBridge.git","clone_url":"https://github.com/Plopix/LegacyBridge.git","svn_url":"https://github.com/Plopix/LegacyBridge","homepage":null,"size":926,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ezsystems:master","ref":"master","sha":"5e467e5f0493ebbbb557094b9ad2e85d3d6cc766","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":29585452,"name":"LegacyBridge","full_name":"ezsystems/LegacyBridge","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/LegacyBridge","description":"eZ Platform bridge to eZ Publish Legacy","fork":false,"url":"https://api.github.com/repos/ezsystems/LegacyBridge","forks_url":"https://api.github.com/repos/ezsystems/LegacyBridge/forks","keys_url":"https://api.github.com/repos/ezsystems/LegacyBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/LegacyBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/LegacyBridge/teams","hooks_url":"https://api.github.com/repos/ezsystems/LegacyBridge/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/LegacyBridge/events","assignees_url":"https://api.github.com/repos/ezsystems/LegacyBridge/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/LegacyBridge/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/LegacyBridge/tags","blobs_url":"https://api.github.com/repos/ezsystems/LegacyBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/LegacyBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/LegacyBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/LegacyBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/LegacyBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/LegacyBridge/languages","stargazers_url":"https://api.github.com/repos/ezsystems/LegacyBridge/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/LegacyBridge/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/LegacyBridge/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/LegacyBridge/subscription","commits_url":"https://api.github.com/repos/ezsystems/LegacyBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/LegacyBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/LegacyBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/LegacyBridge/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/LegacyBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/LegacyBridge/merges","archive_url":"https://api.github.com/repos/ezsystems/LegacyBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/LegacyBridge/downloads","issues_url":"https://api.github.com/repos/ezsystems/LegacyBridge/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/LegacyBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/LegacyBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/LegacyBridge/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/LegacyBridge/releases{/id}","created_at":"2015-01-21T10:54:07Z","updated_at":"2015-04-17T16:13:31Z","pushed_at":"2015-08-31T15:11:22Z","git_url":"git://github.com/ezsystems/LegacyBridge.git","ssh_url":"git@github.com:ezsystems/LegacyBridge.git","clone_url":"https://github.com/ezsystems/LegacyBridge.git","svn_url":"https://github.com/ezsystems/LegacyBridge","homepage":null,"size":1267,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30"},"html":{"href":"https://github.com/ezsystems/LegacyBridge/pull/30"},"issue":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/30"},"comments":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/LegacyBridge/statuses/bb100de2603062de1c785ba824830b814ba4a6a4"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":20,"review_comments":0,"commits":1,"additions":6,"deletions":1,"changed_files":1}}