Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding orchestra bootstrap.

  • Loading branch information...
commit 10bc2f032d5996767dcee0b500148195d3d35fa8 1 parent 5b75964
@gwoo authored
Showing with 24 additions and 0 deletions.
  1. +7 −0 app/config/bootstrap.php
  2. +17 −0 app/config/bootstrap/orchestra.php
View
7 app/config/bootstrap.php
@@ -32,6 +32,13 @@
require __DIR__ . '/bootstrap/libraries.php';
/**
+ * The Orchestra Bootstrap file contains the code for running a Lithium application on the
+ * Orchestra.io PHP Platform. See http://orchestra.io for more information.
+ *
+ */
+require __DIR__ . '/bootstrap/orchestra.php';
+
+/**
* The error configuration allows you to use the filter system along with the advanced matching
* rules of the `ErrorHandler` class to provide a high level of control over managing exceptions in
* your application, with no impact on framework or application code.
View
17 app/config/bootstrap/orchestra.php
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Orchestra.io Bootstap for Lithium
+ *
+ * add `require __DIR__ . '/bootstrap/orchestra.php';` immediately after
+ * `require __DIR__ . '/bootstrap/libraries.php';` in bootstrap.php
+ */
+use lithium\core\Libraries;
+
+Libraries::add('app', array('default'=> true, 'resources' => call_user_func(function() {
+ if (!is_dir($resources = str_replace("//", "/", sys_get_temp_dir() . '/resources'))) {
+ foreach (array($resources, "{$resources}/logs", "{$resources}/tmp/cache/templates") as $d) {
+ mkdir($d, 0777, true);
+ }
+ }
+ return $resources;
+})));
Please sign in to comment.
Something went wrong with that request. Please try again.