PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/dev/tools/migration/acl.php

https://bitbucket.org/sunil_nextbits/magento2
PHP | 42 lines | 15 code | 3 blank | 24 comment | 0 complexity | b1d0cc77e92838f7ca6c42f6a4291ec1 MD5 | raw file
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Open Software License (OSL 3.0)
  8. * that is bundled with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/osl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category Tools
  22. * @package acl
  23. * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  25. */
  26. require_once ('./Acl/Generator.php');
  27. require_once ('./Acl/FileManager.php');
  28. require_once ('./Acl/Formatter.php');
  29. $shortOpts = 'ph';
  30. $options = getopt($shortOpts);
  31. try {
  32. $tool = new Tools_Migration_Acl_Generator(
  33. new Tools_Migration_Acl_Formatter(),
  34. new Tools_Migration_Acl_FileManager(), $options
  35. );
  36. $tool->run();
  37. } catch (Exception $exp) {
  38. echo $exp->getMessage();
  39. }