Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Foundation\Application;
- use Illuminate\Support\ServiceProvider;
- class GoogleAppEngineApplication extends Application
- {
- public function bindInstallPaths(array $paths)
- {
- if (realpath($paths['app'])) {
- $this->instance('path', realpath($paths['app']));
- }
- elseif (file_exists($paths['app'])) {
- $this->instance('path', $paths['app']);
- }
- else {
- $this->instance('path', FALSE);
- }
- foreach (array_except($paths, array('app')) as $key => $value)
- {
- if (realpath($value)) {
- $this->instance("path.{$key}", realpath($value));
- }
- elseif (file_exists($value)) {
- $this->instance("path.{$key}", $value);
- }
- else {
- $this->instance("path.{$key}", FALSE);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement