From 846bae33034a7bf28ea56dc687fd5ee8c2e50fce Mon Sep 17 00:00:00 2001 From: Ben Sheldon Date: Tue, 25 Mar 2014 15:13:02 -0700 Subject: [PATCH] includes templates in the phar --- utils/make-phar.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/utils/make-phar.php b/utils/make-phar.php index 0014e18a5..cd3490718 100644 --- a/utils/make-phar.php +++ b/utils/make-phar.php @@ -50,6 +50,19 @@ function add_file( $phar, $path ) { add_file( $phar, $file ); } +// Non-PHP Files +$finder = new Finder(); +$finder + ->files() + ->ignoreVCS(true) + ->ignoreDotFiles(false) + ->in('./templates') + ; + +foreach ( $finder as $file ) { + add_file( $phar, $file ); +} + add_file( $phar, './vendor/autoload.php' ); add_file( $phar, './vendor/rmccue/requests/library/Requests/Transport/cacert.pem' );