{"action":"created","issue":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/6598","repository_url":"https://api.github.com/repos/Sylius/Sylius","labels_url":"https://api.github.com/repos/Sylius/Sylius/issues/6598/labels{/name}","comments_url":"https://api.github.com/repos/Sylius/Sylius/issues/6598/comments","events_url":"https://api.github.com/repos/Sylius/Sylius/issues/6598/events","html_url":"https://github.com/Sylius/Sylius/issues/6598","id":186294532,"number":6598,"title":"Unable to override or customize productController ","user":{"login":"yosriMekni","id":13231156,"avatar_url":"https://avatars.githubusercontent.com/u/13231156?v=3","gravatar_id":"","url":"https://api.github.com/users/yosriMekni","html_url":"https://github.com/yosriMekni","followers_url":"https://api.github.com/users/yosriMekni/followers","following_url":"https://api.github.com/users/yosriMekni/following{/other_user}","gists_url":"https://api.github.com/users/yosriMekni/gists{/gist_id}","starred_url":"https://api.github.com/users/yosriMekni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosriMekni/subscriptions","organizations_url":"https://api.github.com/users/yosriMekni/orgs","repos_url":"https://api.github.com/users/yosriMekni/repos","events_url":"https://api.github.com/users/yosriMekni/events{/privacy}","received_events_url":"https://api.github.com/users/yosriMekni/received_events","type":"User","site_admin":false},"labels":[{"id":182603,"url":"https://api.github.com/repos/Sylius/Sylius/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":68813520,"url":"https://api.github.com/repos/Sylius/Sylius/labels/Documentation","name":"Documentation","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-31T14:17:49Z","updated_at":"2016-11-01T11:51:29Z","closed_at":null,"body":"I'm using Sylius version 1.0.0-alpha.1 i followed all steps in th [docs](http://docs.sylius.org/en/latest/customization/controller.html) . But i'm unable to override ProductContoller in the AppBundle.\r\nlink to [Stackoverflow](http://stackoverflow.com/q/40347294/5092143)\r\n\r\nThis is the code that i'm using :\r\n`<?php\r\nnamespace AppBundle\\Controller;\r\n\r\nuse FOS\\RestBundle\\View\\View;\r\nuse Symfony\\Component\\HttpFoundation\\Request;\r\nuse Symfony\\Component\\HttpFoundation\\Response;\r\nuse Sylius\\Bundle\\CoreBundle\\Controller\\ProductController as BaseProductController;\r\nuse Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController;\r\nuse Sylius\\Component\\Resource\\ResourceActions;\r\n\r\n\r\nclass ProductController extends ResourceController\r\n{\r\npublic function allProdSpecificTaxonAction(Request $request, $taxonName){\r\n\r\n    $locale = $this->get('sylius.context.locale')->getLocale();\r\n    /** @var Taxon $taxon */\r\n    $taxon = $this->get('sylius.repository.taxon')\r\n    ->findByName($taxonName,$locale);\r\n    var_dump($taxon);\r\n    exit;\r\n}\r\n}\r\n\r\n?>`\r\n\r\nI get this error ; \r\n\r\n`Attempted to load class \"ProductController\" from namespace \"Sylius\\Bundle\\CoreBundle\\Controller\".\r\nDid you forget a \"use\" statement for another namespace?`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Sylius/Sylius/issues/comments/257548116","html_url":"https://github.com/Sylius/Sylius/issues/6598#issuecomment-257548116","issue_url":"https://api.github.com/repos/Sylius/Sylius/issues/6598","id":257548116,"user":{"login":"yosriMekni","id":13231156,"avatar_url":"https://avatars.githubusercontent.com/u/13231156?v=3","gravatar_id":"","url":"https://api.github.com/users/yosriMekni","html_url":"https://github.com/yosriMekni","followers_url":"https://api.github.com/users/yosriMekni/followers","following_url":"https://api.github.com/users/yosriMekni/following{/other_user}","gists_url":"https://api.github.com/users/yosriMekni/gists{/gist_id}","starred_url":"https://api.github.com/users/yosriMekni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosriMekni/subscriptions","organizations_url":"https://api.github.com/users/yosriMekni/orgs","repos_url":"https://api.github.com/users/yosriMekni/repos","events_url":"https://api.github.com/users/yosriMekni/events{/privacy}","received_events_url":"https://api.github.com/users/yosriMekni/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T11:51:29Z","updated_at":"2016-11-01T11:51:29Z","body":"i've managed to do some changes  and now an other exception appeared : \r\nthis my post on [http://stackoverflow.com/q/40347294/5092143](stackoverflow)\r\nCatchable Fatal Error: Argument 1 passed to Sylius\\Bundle\\ResourceBundle\\Controller\\ResourceController::__construct() must implement interface Sylius\\Component\\Resource\\Metadata\\MetadataInterface, none given, called in C:\\wamp3\\www\\sidratsoft_website\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\HttpKernel\\Controller\\ControllerResolver.php on line 186 and defined"}}
{"actor":{"display_login":"yosriMekni"}}