{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/327","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/327/comments","events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/327/events","html_url":"https://github.com/FriendsOfCake/crud/issues/327","id":108197918,"number":327,"title":"RequestHandlerComponent::viewClassMap() is deprecated","user":{"login":"rachid804","id":1418027,"avatar_url":"https://avatars.githubusercontent.com/u/1418027?v=3","gravatar_id":"","url":"https://api.github.com/users/rachid804","html_url":"https://github.com/rachid804","followers_url":"https://api.github.com/users/rachid804/followers","following_url":"https://api.github.com/users/rachid804/following{/other_user}","gists_url":"https://api.github.com/users/rachid804/gists{/gist_id}","starred_url":"https://api.github.com/users/rachid804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachid804/subscriptions","organizations_url":"https://api.github.com/users/rachid804/orgs","repos_url":"https://api.github.com/users/rachid804/repos","events_url":"https://api.github.com/users/rachid804/events{/privacy}","received_events_url":"https://api.github.com/users/rachid804/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T19:31:04Z","updated_at":"2015-09-24T20:20:02Z","closed_at":"2015-09-24T20:20:02Z","body":"This method is deprecated in Cakephp as mentioned in the book:\r\n\r\n**Deprecated since version 3.1.0: As of 3.1.0 the viewClassMap() method is deprecated. You should use config() to change the viewClassMap at runtime.**\r\n\r\nAs a quick fix (or not) i commented the line 357 in ApiListener.php and my API still work fine until now.\r\n\r\nFull error:\r\nDeprecated (16384): RequestHandlerComponent::viewClassMap() is deprecated. Use config(\"viewClassMap\", ...) instead. [CORE\\src\\Controller\\Component\\RequestHandlerComponent.php, line 706]\r\nCode Context\r\nCake\\Controller\\Component\\RequestHandlerComponent::viewClassMap() - CORE\\src\\Controller\\Component\\RequestHandlerComponent.php, line 706\r\nCrud\\Listener\\ApiListener::injectViewClasses() - ROOT\\vendor\\friendsofcake\\crud\\src\\Listener\\ApiListener.php, line 357\r\nCrud\\Listener\\ApiListener::render() - ROOT\\vendor\\friendsofcake\\crud\\src\\Listener\\ApiListener.php, line 190\r\nCrud\\Listener\\ApiListener::respond() - ROOT\\vendor\\friendsofcake\\crud\\src\\Listener\\ApiListener.php, line 117\r\nCake\\Event\\EventManager::_callListener() - CORE\\src\\Event\\EventManager.php, line 385\r\nCake\\Event\\EventManager::dispatch() - CORE\\src\\Event\\EventManager.php, line 355\r\nCrud\\Controller\\Component\\CrudComponent::trigger() - ROOT\\vendor\\friendsofcake\\crud\\src\\Controller\\Component\\CrudComponent.php, line 505\r\nCrud\\Core\\Object::_trigger() - ROOT\\vendor\\friendsofcake\\crud\\src\\Core\\ProxyTrait.php, line 37\r\nCrud\\Action\\IndexAction::_handle() - ROOT\\vendor\\friendsofcake\\crud\\src\\Action\\IndexAction.php, line 57\r\nCrud\\Action\\BaseAction::handle() - ROOT\\vendor\\friendsofcake\\crud\\src\\Action\\BaseAction.php, line 69\r\nCrud\\Controller\\Component\\CrudComponent::execute() - ROOT\\vendor\\friendsofcake\\crud\\src\\Controller\\Component\\CrudComponent.php, line 228\r\nApp\\Controller\\Api\\AppController::invokeAction() - ROOT\\vendor\\friendsofcake\\crud\\src\\Controller\\ControllerTrait.php, line 56\r\nCake\\Routing\\Dispatcher::_invoke() - CORE\\src\\Routing\\Dispatcher.php, line 114\r\nCake\\Routing\\Dispatcher::dispatch() - CORE\\src\\Routing\\Dispatcher.php, line 87\r\n[main] - ROOT\\webroot\\index.php, line 37\r\n"},"comment":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/comments/143040303","html_url":"https://github.com/FriendsOfCake/crud/issues/327#issuecomment-143040303","issue_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/327","id":143040303,"user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T20:20:02Z","updated_at":"2015-09-24T20:20:02Z","body":"Please make sure you have the latest version of this plugin"}}