sfPluginAssetsUpgrade.class.php 821 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * Fixes plugin assets symlink for core plugins.
  11. *
  12. * @package symfony
  13. * @subpackage task
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfPluginAssetsUpgrade.class.php 12542 2008-11-01 15:38:31Z fabien $
  16. */
  17. class sfPluginAssetsUpgrade extends sfUpgrade
  18. {
  19. public function upgrade()
  20. {
  21. $publishAssets = new sfPluginPublishAssetsTask($this->dispatcher, $this->formatter);
  22. $publishAssets->setCommandApplication($this->commandApplication);
  23. $publishAssets->run(array(), array('--core-only'));
  24. }
  25. }