AboutController.php 917 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of Packagist.
  4. *
  5. * (c) Jordi Boggiano <j.boggiano@seld.be>
  6. * Nils Adermann <naderman@naderman.de>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Packagist\WebBundle\Controller;
  12. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  13. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  14. use Symfony\Component\HttpFoundation\RedirectResponse;
  15. /**
  16. * @author Jordi Boggiano <j.boggiano@seld.be>
  17. */
  18. class AboutController extends Controller
  19. {
  20. /**
  21. * @Template()
  22. * @Route("/about", name="about")
  23. */
  24. public function aboutAction()
  25. {
  26. return array();
  27. }
  28. /**
  29. * @Route("/about-composer")
  30. */
  31. public function aboutComposerFallbackAction()
  32. {
  33. return new RedirectResponse('https://getcomposer.org/', 301);
  34. }
  35. }