Skip to content

Instantly share code, notes, and snippets.

@DarkGhostHunter
Created November 27, 2019 05:21
Show Gist options
  • Save DarkGhostHunter/d62503adae8f5d4c5b4f4a822119f526 to your computer and use it in GitHub Desktop.
Save DarkGhostHunter/d62503adae8f5d4c5b4f4a822119f526 to your computer and use it in GitHub Desktop.
A sample preload file
<?php
// Get the list of files of the main directory and remove the dots
$files = array_diff(scandir(__DIR__ . '/src/'), array('..', '.'));
// Add the helpers file
$files[] = 'helpers/helpers.php';
return $files;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment