HtaccessWriterInterface.php 465 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Drupal\Core\File;
  3. /**
  4. * Interface for managing Apache .htaccess files.
  5. */
  6. interface HtaccessWriterInterface {
  7. /**
  8. * Creates a .htaccess file in each Drupal files directory if it is missing.
  9. */
  10. public function ensure();
  11. /**
  12. * Returns a list of the default protected directories.
  13. *
  14. * @return \Drupal\Core\File\ProtectedDirectory[]
  15. * The default protected directories.
  16. */
  17. public function defaultProtectedDirs();
  18. }