Writer.php 678 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Interface for config writers
  4. *
  5. * Specifies the methods that a config writer must implement
  6. *
  7. * @package Kohana
  8. * @author Kohana Team
  9. * @copyright (c) Kohana Team
  10. * @license https://koseven.ga/LICENSE.md
  11. */
  12. interface Kohana_Config_Writer extends Kohana_Config_Source
  13. {
  14. /**
  15. * Writes the passed config for $group
  16. *
  17. * Returns chainable instance on success or throws
  18. * Kohana_Config_Exception on failure
  19. *
  20. * @param string $group The config group
  21. * @param string $key The config key to write to
  22. * @param array $config The configuration to write
  23. * @return boolean
  24. */
  25. public function write($group, $key, $config);
  26. }