GitHub PullRequestReviewCommentEvent at 2014-01-27 18:36:24
Repository: DoctrineBundle
Actor: stof
Payload: {"comment":{"url":"https://api.github.com/repos/doctrine/DoctrineBundle/pulls/comments/9199772","id":9199772,"diff_hunk":"@@ -0,0 +1,82 @@\n+<?php\n+\n+/*\n+ * This file is part of the Doctrine Bundle\n+ *\n+ * The code was originally distributed inside the Symfony framework.\n+ *\n+ * (c) Fabien Potencier <fabien@symfony.com>\n+ * (c) Doctrine Project, Benjamin Eberlei <kontakt@beberlei.de>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace Doctrine\\Bundle\\DoctrineBundle\\Command\\Proxy;\n+\n+use Symfony\\Component\\Console\\Command\\Command;\n+use Symfony\\Component\\Console\\Input\\InputOption;\n+use Symfony\\Component\\Console\\Input\\InputInterface;\n+use Symfony\\Component\\Console\\Output\\OutputInterface;\n+\n+/**\n+ * Command Delegate.\n+ *\n+ * @author Fabio B. Silva <fabio.bat.silva@gmail.com>\n+ */\n+abstract class DelegateCommand extends Command\n+{\n+    /**\n+     * @var \\Symfony\\Component\\Console\\Command\\Command\n+     */\n+    protected $command;\n+\n+    /**\n+     * @return \\Symfony\\Component\\Console\\Command\\Command\n+     */\n+    abstract protected function createCommand();\n+\n+    /**\n+     * @return string\n+     */\n+    protected function getMinimalVersion()\n+    {\n+        return '2.3.0-DEV';\n+    }\n+\n+    /**\n+     * {@inheritDoc}\n+     */\n+    protected function configure()\n+    {\n+        parent::configure();\n+\n+        if (version_compare(\\Doctrine\\ORM\\Version::VERSION, $this->getMinimalVersion()) >= 0) {\n+            $this->command = $this->createCommand();\n+            $help          = $this->command->getHelp();\n+            $difinition    = $this->command->getDefinition();","path":"Command/Proxy/DelegateCommand.php","position":57,"original_position":57,"commit_id":"ca47da08ec410375273246123f71fbc3d88844bd","original_commit_id":"ca47da08ec410375273246123f71fbc3d88844bd","user":{"login":"stof","id":439401,"avatar_url":"https://gravatar.com/avatar/7894bbdf1c05b18a1444ad8c76c9d583?d=https%3A%2F%2Fidenticons.github.com%2Fd339b80a37d1fe7e96192364ab2d75fe.png&r=x","gravatar_id":"7894bbdf1c05b18a1444ad8c76c9d583","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"body":"``$definition``\r\n\r\nAnd please don't align ``=`` signs. I don't use this rule in the bundle (I don't like it because it leads to lots of unnecessary diffs). The only places using such CS are probably the changes done by @guilhermeblanco this weekend","created_at":"2014-01-27T18:36:24Z","updated_at":"2014-01-27T18:36:24Z","html_url":"https://github.com/doctrine/DoctrineBundle/pull/251#discussion_r9199772","pull_request_url":"https://api.github.com/repos/doctrine/DoctrineBundle/pulls/251","_links":{"self":{"href":"https://api.github.com/repos/doctrine/DoctrineBundle/pulls/comments/9199772"},"html":{"href":"https://github.com/doctrine/DoctrineBundle/pull/251#discussion_r9199772"},"pull_request":{"href":"https://api.github.com/repos/doctrine/DoctrineBundle/pulls/251"}}}}