partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 34740599f4141cd21f61eb88f34f0919e1fe2975
parent da51e30e1a9842e62b8cf63395407239f22e5db7
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat,  7 Nov 2015 19:56:50 +0100

Added update check command

Diffstat:
Asrc/PartKeepr/CoreBundle/Command/CheckForUpdatesCommand.php | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/PartKeepr/CoreBundle/Command/CheckForUpdatesCommand.php b/src/PartKeepr/CoreBundle/Command/CheckForUpdatesCommand.php @@ -0,0 +1,21 @@ +<?php +namespace PartKeepr\CoreBundle\Command; + +use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Output\OutputInterface; + +class CheckForUpdatesCommand extends ContainerAwareCommand +{ + public function configure() + { + parent::configure(); + $this->setName('partkeepr:update-check'); + $this->setDescription("Checks for PartKeepr updates"); + } + + public function execute(InputInterface $input, OutputInterface $output) + { + $this->getContainer()->get("partkeepr.versionservice")->doVersionCheck(); + } +}