DefinitionManager.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace Apps\Configs\Definitions;
  3. if (!defined('CF_SYSTEM')) {
  4. exit('External script access not allowed');
  5. }
  6. /**
  7. * Cygnite Framework
  8. * Database Configuration Settings
  9. *
  10. * An open source application development framework for PHP 5.3x or newer
  11. *
  12. * License
  13. *
  14. * This source file is subject to the MIT license that is bundled
  15. * with this package in the file LICENSE.txt.
  16. * http://www.cygniteframework.com/license.txt
  17. * If you did not receive a copy of the license and are unable to
  18. * obtain it through the world-wide-web, please send an email
  19. * to [email protected] so I can send you a copy immediately.
  20. *
  21. *@package : Apps
  22. *@subpackages : Configurations
  23. *@filename : DefinitionManager.php
  24. *@description : Define all your property dependencies. Cygnite will
  25. * inject your dependency at run time.
  26. *@author : Sanjoy Dey
  27. *@copyright : Copyright (c) 2013 - 2014,
  28. *@link : http://www.cygniteframework.com
  29. *@since : Version 1.2
  30. *@filesource
  31. *
  32. */
  33. class DefinitionManager
  34. {
  35. /**
  36. * Set controller property dependencies here.
  37. * Cygnite will inject all your dependencies at runtime
  38. *
  39. * @return array
  40. * <code>
  41. * return
  42. * array(
  43. * 'HomeController' => array(
  44. * 'service' => 'apps.extensions.general',
  45. * 'api' => 'apps.extensions.api'
  46. * ),
  47. * 'ProductsController' => array(
  48. * 'social' => 'apps.extensions.social-share',
  49. * ),
  50. * );
  51. * </code>
  52. *
  53. */
  54. public function getPropertyDependencies()
  55. {
  56. return array();
  57. }
  58. /**
  59. *
  60. * @return type
  61. * <code>
  62. * return
  63. * array(
  64. * 'GeneralInterface' => '\\Apps\\Extensions\\General',
  65. * 'ORM' => '\\Cygnite\\Database\\ActiveRecord',
  66. * );
  67. * </code>
  68. */
  69. public function registerAlias()
  70. {
  71. return array();
  72. }
  73. }