Change to be able to return called API version

This commit is contained in:
Benoît Burnichon
2015-12-16 16:31:42 +01:00
parent 0dfe794145
commit b2ee2668a1
19 changed files with 247 additions and 73 deletions

View File

@@ -10,6 +10,7 @@
namespace Alchemy\Phrasea\Controller\Root;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\ControllerProvider\Api\V2;
use Alchemy\Phrasea\Exception\InvalidArgumentException;
use Alchemy\Phrasea\Model\Entities\ApiApplication;
use Alchemy\Phrasea\Model\Manipulator\ApiAccountManipulator;
@@ -185,7 +186,7 @@ class DeveloperController extends Controller
);
// create an account as well
$this->getApiAccountManipulator()->create($application, $user);
$this->getApiAccountManipulator()->create($application, $user, V2::VERSION);
return $this->app->redirectPath('developers_application', ['application' => $application->getId()]);
}