mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Change to be able to return called API version
This commit is contained in:
@@ -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()]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user