From 4f047324a713efc19997f46b8fa12a873ae567a9 Mon Sep 17 00:00:00 2001 From: Sayak Banerjee Date: Sun, 1 Dec 2013 19:24:29 -0600 Subject: [PATCH] Remove hard coded paths --- bootstrap/compiled.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/bootstrap/compiled.php b/bootstrap/compiled.php index 3ef3cb5d6..6c06eaea0 100755 --- a/bootstrap/compiled.php +++ b/bootstrap/compiled.php @@ -58,7 +58,7 @@ public static function getDirectories() use ReflectionParameter; class BindingResolutionException extends \Exception { - + } class Container implements ArrayAccess { @@ -380,7 +380,7 @@ public function bindInstallPaths(array $paths) } public static function getBootstrapFile() { - return '/media/sayakb/storage/Apache/sticky-notes-src/vendor/laravel/framework/src/Illuminate/Foundation' . '/start.php'; + return __DIR__.'/vendor/laravel/framework/src/Illuminate/Foundation' . '/start.php'; } public function startExceptionHandling() { @@ -1626,7 +1626,7 @@ private function setPhpDefaultLocale($locale) \Locale::setDefault($locale); } } catch (\Exception $e) { - + } } private function getUrlencodedPrefix($string, $prefix) @@ -2685,7 +2685,7 @@ public function getLastUsed() } public function clear() { - + } public function getName() { @@ -2707,12 +2707,12 @@ private function stampCreated($lifetime = null) if (version_compare(phpversion(), '5.4.0', '>=')) { class NativeSessionHandler extends \SessionHandler { - + } } else { class NativeSessionHandler { - + } } namespace Symfony\Component\HttpFoundation\Session\Storage\Proxy; @@ -3176,7 +3176,7 @@ public function __construct($app) } public function boot() { - + } public abstract function register(); public function package($package, $namespace = null, $path = null) @@ -3690,17 +3690,17 @@ public function handle($level, $message, $file = 'unknown', $line = 0, $context } if ($this->displayErrors && error_reporting() & $level && $this->level & $level) { if (!class_exists('Symfony\\Component\\Debug\\Exception\\ContextErrorException')) { - require '/media/sayakb/storage/Apache/sticky-notes-src/vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/ContextErrorException.php'; + require __DIR__.'/vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/ContextErrorException.php'; } $exception = new ContextErrorException(sprintf('%s: %s in %s line %d', isset($this->levels[$level]) ? $this->levels[$level] : $level, $message, $file, $line), 0, $level, $file, $line, $context); $exceptionHandler = set_exception_handler(function () { - + }); restore_exception_handler(); if (is_array($exceptionHandler) && $exceptionHandler[0] instanceof ExceptionHandler) { $exceptionHandler[0]->handle($exception); if (!class_exists('Symfony\\Component\\Debug\\Exception\\DummyException')) { - require '/media/sayakb/storage/Apache/sticky-notes-src/vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/DummyException.php'; + require __DIR__.'/vendor/symfony/debug/Symfony/Component/Debug' . '/Exception/DummyException.php'; } set_exception_handler(function (\Exception $e) use($exceptionHandler) { if (!$e instanceof DummyException) { @@ -3730,7 +3730,7 @@ public function handleFatal() return; } $exceptionHandler = set_exception_handler(function () { - + }); restore_exception_handler(); if (is_array($exceptionHandler) && $exceptionHandler[0] instanceof ExceptionHandler) { @@ -3746,7 +3746,7 @@ public function handleFatal() use Symfony\Component\Debug\ErrorHandler as DebugErrorHandler; class ErrorHandler extends DebugErrorHandler { - + } namespace Illuminate\Config; @@ -4045,7 +4045,7 @@ public function cascadePackage($environment, $package, $group, $items); use Symfony\Component\Finder\Finder; class FileNotFoundException extends \Exception { - + } class Filesystem { @@ -6327,7 +6327,7 @@ public function fromDateTime($value) { $format = $this->getDateFormat(); if ($value instanceof DateTime) { - + } elseif (is_numeric($value)) { $value = Carbon::createFromTimestamp($value); } elseif (preg_match('/^(\\d{4})-(\\d{2})-(\\d{2})$/', $value)) { @@ -7013,7 +7013,7 @@ public function getQueuedCookies() class DecryptException extends \RuntimeException { - + } class Encrypter { @@ -7465,7 +7465,7 @@ public function handleBatch(array $records) } public function close() { - + } public function pushProcessor($callback) { @@ -7517,7 +7517,7 @@ public function __destruct() try { $this->close(); } catch (\Exception $e) { - + } } protected function getDefaultFormatter() @@ -10075,7 +10075,7 @@ class Cookie protected $httpOnly; public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true) { - if (preg_match('/[=,; + if (preg_match('/[=,; ]/', $name)) { throw new \InvalidArgumentException(sprintf('The cookie name "%s" contains invalid characters.', $name)); } @@ -10352,7 +10352,7 @@ public function handle() return Handler::DONE; } if (!($resources = $this->getResourcesPath())) { - $resources = '/media/sayakb/storage/Apache/sticky-notes-src/vendor/filp/whoops/src/Whoops/Handler' . '/../Resources'; + $resources = __DIR__.'/vendor/filp/whoops/src/Whoops/Handler' . '/../Resources'; } $templateFile = "{$resources}/pretty-template.php"; $cssFile = "{$resources}/pretty-page.css";