Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added: Bootstrap file, so that we get SystemProcess phar archives.

  • Loading branch information...
commit 34b624de260d75bd178509f00a954ce7d0c58e33 1 parent 6774d3c
@manuelpichler manuelpichler authored
Showing with 35 additions and 1 deletion.
  1. +0 −1  setup
  2. +1 −0  setup
  3. +34 −0 src/conf/phar_bootstrap.stub
1  setup
@@ -1 +0,0 @@
-Subproject commit 8d85c0c9e00092926fcec6ce64d742a5fc70b120
View
1  setup
View
34 src/conf/phar_bootstrap.stub
@@ -0,0 +1,34 @@
+<?php
+/**
+ * systemProcess base class
+ *
+ * This file is part of systemProcess.
+ *
+ * systemProcess is free software; you can redistribute it and/or modify it
+ * under the terms of the Lesser GNU General Public License as published by the
+ * Free Software Foundation; version 3 of the License.
+ *
+ * systemProcess is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public License
+ * for more details.
+ *
+ * You should have received a copy of the Lesser GNU General Public License
+ * along with systemProcess; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * @license http://www.gnu.org/licenses/lgpl-3.0.txt LGPLv3
+ * @version $Revision$
+ */
+
+// Map this phar archive
+Phar::mapPhar( '${archive.alias}' );
+
+// Configure include path to use this phar
+set_include_path( 'phar://${archive.alias}/' . PATH_SEPARATOR . get_include_path() );
+
+// Register psr-0 autoloader
+spl_autoload_register( function( $class ) {
+ include_once 'phar://${archive.alias}/' . strtr( $class, '\\', '/' ) . '.php' ;
+} );
+__HALT_COMPILER();
Please sign in to comment.
Something went wrong with that request. Please try again.