{"action":"created","comment":{"url":"https://api.github.com/repos/pamil/Sylius/pulls/comments/31438920","id":31438920,"diff_hunk":"@@ -0,0 +1,56 @@\n+<?php\n+\n+namespace Sylius\\Bundle\\ThemeBundle\\Command;\n+\n+use Sylius\\Bundle\\ThemeBundle\\Model\\ThemeInterface;\n+use Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+\n+/**\n+ * @author Kamil Kokot <kamil.kokot@lakion.com>\n+ */\n+class DebugThemeCommand extends ContainerAwareCommand\n+{\n+    protected function configure()\n+    {\n+        $this\n+            ->setName('sylius:debug:theme')\n+            ->setDescription('Shows list of detected themes.')\n+        ;\n+    }\n+\n+    protected function execute(InputInterface $input, OutputInterface $output)\n+    {\n+        $this->showSuccessfullyLoadedThemes($output);\n+    }\n+\n+    private function showSuccessfullyLoadedThemes(OutputInterface $output)\n+    {\n+        /** @var ThemeInterface[] $themes */\n+        $themes = $this->getContainer()->get('sylius.repository.theme')->findAll();\n+\n+        if (0 < count($themes)) {","path":"src/Sylius/Bundle/ThemeBundle/Command/DebugThemeCommand.php","position":33,"original_position":33,"commit_id":"b7ff3c700795f514e58c7188301f607448282e25","original_commit_id":"b7ff3c700795f514e58c7188301f607448282e25","user":{"login":"michalmarcinkowski","id":7572437,"avatar_url":"https://avatars.githubusercontent.com/u/7572437?v=3","gravatar_id":"","url":"https://api.github.com/users/michalmarcinkowski","html_url":"https://github.com/michalmarcinkowski","followers_url":"https://api.github.com/users/michalmarcinkowski/followers","following_url":"https://api.github.com/users/michalmarcinkowski/following{/other_user}","gists_url":"https://api.github.com/users/michalmarcinkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michalmarcinkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalmarcinkowski/subscriptions","organizations_url":"https://api.github.com/users/michalmarcinkowski/orgs","repos_url":"https://api.github.com/users/michalmarcinkowski/repos","events_url":"https://api.github.com/users/michalmarcinkowski/events{/privacy}","received_events_url":"https://api.github.com/users/michalmarcinkowski/received_events","type":"User","site_admin":false},"body":"if (empty($themes)) {\r\n    // write 'no themes'\r\n    return;\r\n}","created_at":"2015-06-01T15:49:25Z","updated_at":"2015-06-01T15:49:25Z","html_url":"https://github.com/pamil/Sylius/pull/1#discussion_r31438920","pull_request_url":"https://api.github.com/repos/pamil/Sylius/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/comments/31438920"},"html":{"href":"https://github.com/pamil/Sylius/pull/1#discussion_r31438920"},"pull_request":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pamil/Sylius/pulls/1","id":36491534,"html_url":"https://github.com/pamil/Sylius/pull/1","diff_url":"https://github.com/pamil/Sylius/pull/1.diff","patch_url":"https://github.com/pamil/Sylius/pull/1.patch","issue_url":"https://api.github.com/repos/pamil/Sylius/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] [ThemeBundle] Introduction of ThemeBundle","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"body":"Work in progress, use `/test` route in dev environment to do some manual tests :)\r\n\r\nImportant changes:\r\n * **Templates:** changed loading order (priority descending, **bolded** are new ones):\r\n   * App templates:\r\n     * **`<Theme>/views`**\r\n     * `app/Resources/views`\r\n   * Bundle templates:\r\n     * **`<Theme>/<Bundle name>/views`**\r\n     * `app/Resources/<Bundle name>/views`\r\n     * `<Bundle>/Resources/views`\r\n\r\n * **Translations:** changed loading order (priority descending, **bolded** are new ones):\r\n   * **`<Theme>/translations`**\r\n   * **`<Theme>/<Bundle name>/translations`**\r\n   * `app/Resources/translations`\r\n   * `app/Resources/<Bundle name>/translations`\r\n   * `<Bundle>/Resources/translations`\r\n\r\n * **Assets**: chaged the way command `assets:install` works:\r\n   * Since now, `assets:install` with `--symlink` or `--relative` parameters, creates symlinks for every installed asset file, not for entire asset directory (eg. if `AcmeBundle/Resources/public/asset.js` exists, it creates symlink `web/bundles/acme/asset.js` leading to `AcmeBundle/Resources/public/asset.js` instead of symlink `web/bundles/acme/` leading to `AcmeBundle/Resources/public/`). When you create new asset or delete existing one, it is required to rerun this command to apply changes (just as the hard copy option works).\r\n\r\nTODO:\r\n - [ ] Create integration tests\r\n - [ ] Delete unnecessary files (for manual tests)\r\n - [ ] Define translation files order\r\n - [ ] Integrate with Assetic and AsseticBundle\r\n - [ ] Write docs\r\n - [ ] Update bundle's composer.json","created_at":"2015-05-29T10:15:34Z","updated_at":"2015-06-01T15:49:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6cd1bc25e17225be04942f4effab41437e2335b","assignee":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pamil/Sylius/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pamil/Sylius/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pamil/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pamil/Sylius/issues/1/comments","statuses_url":"https://api.github.com/repos/pamil/Sylius/statuses/b7ff3c700795f514e58c7188301f607448282e25","head":{"label":"pamil:theme-bundle","ref":"theme-bundle","sha":"b7ff3c700795f514e58c7188301f607448282e25","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"repo":{"id":33619140,"name":"Sylius","full_name":"pamil/Sylius","owner":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pamil/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/pamil/Sylius","forks_url":"https://api.github.com/repos/pamil/Sylius/forks","keys_url":"https://api.github.com/repos/pamil/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pamil/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pamil/Sylius/teams","hooks_url":"https://api.github.com/repos/pamil/Sylius/hooks","issue_events_url":"https://api.github.com/repos/pamil/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/pamil/Sylius/events","assignees_url":"https://api.github.com/repos/pamil/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/pamil/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/pamil/Sylius/tags","blobs_url":"https://api.github.com/repos/pamil/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pamil/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pamil/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/pamil/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pamil/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/pamil/Sylius/languages","stargazers_url":"https://api.github.com/repos/pamil/Sylius/stargazers","contributors_url":"https://api.github.com/repos/pamil/Sylius/contributors","subscribers_url":"https://api.github.com/repos/pamil/Sylius/subscribers","subscription_url":"https://api.github.com/repos/pamil/Sylius/subscription","commits_url":"https://api.github.com/repos/pamil/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/pamil/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/pamil/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/pamil/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/pamil/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/pamil/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pamil/Sylius/merges","archive_url":"https://api.github.com/repos/pamil/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pamil/Sylius/downloads","issues_url":"https://api.github.com/repos/pamil/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/pamil/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/pamil/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/pamil/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pamil/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/pamil/Sylius/releases{/id}","created_at":"2015-04-08T16:39:30Z","updated_at":"2015-04-08T16:39:36Z","pushed_at":"2015-05-29T10:15:34Z","git_url":"git://github.com/pamil/Sylius.git","ssh_url":"git@github.com:pamil/Sylius.git","clone_url":"https://github.com/pamil/Sylius.git","svn_url":"https://github.com/pamil/Sylius","homepage":"Sylius.org","size":16531,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pamil:master","ref":"master","sha":"0c15f8353e5c70817d7d4d23c5ff53eccd4f8015","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"repo":{"id":33619140,"name":"Sylius","full_name":"pamil/Sylius","owner":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pamil/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/pamil/Sylius","forks_url":"https://api.github.com/repos/pamil/Sylius/forks","keys_url":"https://api.github.com/repos/pamil/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pamil/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pamil/Sylius/teams","hooks_url":"https://api.github.com/repos/pamil/Sylius/hooks","issue_events_url":"https://api.github.com/repos/pamil/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/pamil/Sylius/events","assignees_url":"https://api.github.com/repos/pamil/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/pamil/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/pamil/Sylius/tags","blobs_url":"https://api.github.com/repos/pamil/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pamil/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pamil/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/pamil/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pamil/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/pamil/Sylius/languages","stargazers_url":"https://api.github.com/repos/pamil/Sylius/stargazers","contributors_url":"https://api.github.com/repos/pamil/Sylius/contributors","subscribers_url":"https://api.github.com/repos/pamil/Sylius/subscribers","subscription_url":"https://api.github.com/repos/pamil/Sylius/subscription","commits_url":"https://api.github.com/repos/pamil/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/pamil/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/pamil/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/pamil/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/pamil/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/pamil/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pamil/Sylius/merges","archive_url":"https://api.github.com/repos/pamil/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pamil/Sylius/downloads","issues_url":"https://api.github.com/repos/pamil/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/pamil/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/pamil/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/pamil/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pamil/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/pamil/Sylius/releases{/id}","created_at":"2015-04-08T16:39:30Z","updated_at":"2015-04-08T16:39:36Z","pushed_at":"2015-05-29T10:15:34Z","git_url":"git://github.com/pamil/Sylius.git","ssh_url":"git@github.com:pamil/Sylius.git","clone_url":"https://github.com/pamil/Sylius.git","svn_url":"https://github.com/pamil/Sylius","homepage":"Sylius.org","size":16531,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/1"},"html":{"href":"https://github.com/pamil/Sylius/pull/1"},"issue":{"href":"https://api.github.com/repos/pamil/Sylius/issues/1"},"comments":{"href":"https://api.github.com/repos/pamil/Sylius/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pamil/Sylius/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pamil/Sylius/statuses/b7ff3c700795f514e58c7188301f607448282e25"}}}}