Skip to content

Commit

Permalink
in uploader use new qrcode
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed Mar 19, 2019
1 parent 4bd0ae6 commit 0a75416
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Services/BuildsUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ public function __construct(UrlGeneratorInterface $router, AppDataManager $appDa
public function upload(UploadedFile $file, $comment, $project, $type, $ref = null, $commit = null, $jobName = null, $ci = false)
{
$app = $this->appFactory->create($file, $comment, $project, $type, $ref, $commit, $jobName, $ci);

$app->setQrcodeUrl('https://chart.apis.google.com/chart?chl=' . urlencode($this->router->generate('build_install_platform',
['token' => $app->getToken(), 'platform' => $app->getType()], UrlGeneratorInterface::ABSOLUTE_URL)) . '&chs=200x200&choe=UTF-8&cht=qr&chld=L%7C2');
$app->setQrcodeUrl($this->router->generate('build_install_qr', ['token' => $app->getToken()]));

if ($app->getBuildUrl()) {
$this->appDataManager->saveJsonData($app);
Expand Down

0 comments on commit 0a75416

Please sign in to comment.