Skip to content

Commit 9b23f5b

Browse files
author
Josh Koenig
committed
Merge pull request #9 from pantheon-systems/phared_templates
Include templates in the phar
2 parents 5106a84 + 846bae3 commit 9b23f5b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

utils/make-phar.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ function add_file( $phar, $path ) {
5050
add_file( $phar, $file );
5151
}
5252

53+
// Non-PHP Files
54+
$finder = new Finder();
55+
$finder
56+
->files()
57+
->ignoreVCS(true)
58+
->ignoreDotFiles(false)
59+
->in('./templates')
60+
;
61+
62+
foreach ( $finder as $file ) {
63+
add_file( $phar, $file );
64+
}
65+
5366
add_file( $phar, './vendor/autoload.php' );
5467
add_file( $phar, './vendor/rmccue/requests/library/Requests/Transport/cacert.pem' );
5568

0 commit comments

Comments
 (0)