You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2015/05/03 14:40:14 UTC
[34/51] [partial] airavata-php-gateway git commit: removing vendor
files
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php b/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
deleted file mode 100755
index e3da955..0000000
--- a/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
+++ /dev/null
@@ -1,412 +0,0 @@
-<?php namespace Illuminate\Filesystem;
-
-use FilesystemIterator;
-use Symfony\Component\Finder\Finder;
-
-class Filesystem {
-
- /**
- * Determine if a file exists.
- *
- * @param string $path
- * @return bool
- */
- public function exists($path)
- {
- return file_exists($path);
- }
-
- /**
- * Get the contents of a file.
- *
- * @param string $path
- * @return string
- *
- * @throws FileNotFoundException
- */
- public function get($path)
- {
- if ($this->isFile($path)) return file_get_contents($path);
-
- throw new FileNotFoundException("File does not exist at path {$path}");
- }
-
- /**
- * Get the returned value of a file.
- *
- * @param string $path
- * @return mixed
- *
- * @throws FileNotFoundException
- */
- public function getRequire($path)
- {
- if ($this->isFile($path)) return require $path;
-
- throw new FileNotFoundException("File does not exist at path {$path}");
- }
-
- /**
- * Require the given file once.
- *
- * @param string $file
- * @return mixed
- */
- public function requireOnce($file)
- {
- require_once $file;
- }
-
- /**
- * Write the contents of a file.
- *
- * @param string $path
- * @param string $contents
- * @param bool $lock
- * @return int
- */
- public function put($path, $contents, $lock = false)
- {
- return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
- }
-
- /**
- * Prepend to a file.
- *
- * @param string $path
- * @param string $data
- * @return int
- */
- public function prepend($path, $data)
- {
- if ($this->exists($path))
- {
- return $this->put($path, $data.$this->get($path));
- }
-
- return $this->put($path, $data);
- }
-
- /**
- * Append to a file.
- *
- * @param string $path
- * @param string $data
- * @return int
- */
- public function append($path, $data)
- {
- return file_put_contents($path, $data, FILE_APPEND);
- }
-
- /**
- * Delete the file at a given path.
- *
- * @param string|array $paths
- * @return bool
- */
- public function delete($paths)
- {
- $paths = is_array($paths) ? $paths : func_get_args();
-
- $success = true;
-
- foreach ($paths as $path) { if ( ! @unlink($path)) $success = false; }
-
- return $success;
- }
-
- /**
- * Move a file to a new location.
- *
- * @param string $path
- * @param string $target
- * @return bool
- */
- public function move($path, $target)
- {
- return rename($path, $target);
- }
-
- /**
- * Copy a file to a new location.
- *
- * @param string $path
- * @param string $target
- * @return bool
- */
- public function copy($path, $target)
- {
- return copy($path, $target);
- }
-
- /**
- * Extract the file name from a file path.
- *
- * @param string $path
- * @return string
- */
- public function name($path)
- {
- return pathinfo($path, PATHINFO_FILENAME);
- }
-
- /**
- * Extract the file extension from a file path.
- *
- * @param string $path
- * @return string
- */
- public function extension($path)
- {
- return pathinfo($path, PATHINFO_EXTENSION);
- }
-
- /**
- * Get the file type of a given file.
- *
- * @param string $path
- * @return string
- */
- public function type($path)
- {
- return filetype($path);
- }
-
- /**
- * Get the file size of a given file.
- *
- * @param string $path
- * @return int
- */
- public function size($path)
- {
- return filesize($path);
- }
-
- /**
- * Get the file's last modification time.
- *
- * @param string $path
- * @return int
- */
- public function lastModified($path)
- {
- return filemtime($path);
- }
-
- /**
- * Determine if the given path is a directory.
- *
- * @param string $directory
- * @return bool
- */
- public function isDirectory($directory)
- {
- return is_dir($directory);
- }
-
- /**
- * Determine if the given path is writable.
- *
- * @param string $path
- * @return bool
- */
- public function isWritable($path)
- {
- return is_writable($path);
- }
-
- /**
- * Determine if the given path is a file.
- *
- * @param string $file
- * @return bool
- */
- public function isFile($file)
- {
- return is_file($file);
- }
-
- /**
- * Find path names matching a given pattern.
- *
- * @param string $pattern
- * @param int $flags
- * @return array
- */
- public function glob($pattern, $flags = 0)
- {
- return glob($pattern, $flags);
- }
-
- /**
- * Get an array of all files in a directory.
- *
- * @param string $directory
- * @return array
- */
- public function files($directory)
- {
- $glob = glob($directory.'/*');
-
- if ($glob === false) return array();
-
- // To get the appropriate files, we'll simply glob the directory and filter
- // out any "files" that are not truly files so we do not end up with any
- // directories in our list, but only true files within the directory.
- return array_filter($glob, function($file)
- {
- return filetype($file) == 'file';
- });
- }
-
- /**
- * Get all of the files from the given directory (recursive).
- *
- * @param string $directory
- * @return array
- */
- public function allFiles($directory)
- {
- return iterator_to_array(Finder::create()->files()->in($directory), false);
- }
-
- /**
- * Get all of the directories within a given directory.
- *
- * @param string $directory
- * @return array
- */
- public function directories($directory)
- {
- $directories = array();
-
- foreach (Finder::create()->in($directory)->directories()->depth(0) as $dir)
- {
- $directories[] = $dir->getPathname();
- }
-
- return $directories;
- }
-
- /**
- * Create a directory.
- *
- * @param string $path
- * @param int $mode
- * @param bool $recursive
- * @param bool $force
- * @return bool
- */
- public function makeDirectory($path, $mode = 0755, $recursive = false, $force = false)
- {
- if ($force)
- {
- return @mkdir($path, $mode, $recursive);
- }
-
- return mkdir($path, $mode, $recursive);
- }
-
- /**
- * Copy a directory from one location to another.
- *
- * @param string $directory
- * @param string $destination
- * @param int $options
- * @return bool
- */
- public function copyDirectory($directory, $destination, $options = null)
- {
- if ( ! $this->isDirectory($directory)) return false;
-
- $options = $options ?: FilesystemIterator::SKIP_DOTS;
-
- // If the destination directory does not actually exist, we will go ahead and
- // create it recursively, which just gets the destination prepared to copy
- // the files over. Once we make the directory we'll proceed the copying.
- if ( ! $this->isDirectory($destination))
- {
- $this->makeDirectory($destination, 0777, true);
- }
-
- $items = new FilesystemIterator($directory, $options);
-
- foreach ($items as $item)
- {
- // As we spin through items, we will check to see if the current file is actually
- // a directory or a file. When it is actually a directory we will need to call
- // back into this function recursively to keep copying these nested folders.
- $target = $destination.'/'.$item->getBasename();
-
- if ($item->isDir())
- {
- $path = $item->getPathname();
-
- if ( ! $this->copyDirectory($path, $target, $options)) return false;
- }
-
- // If the current items is just a regular file, we will just copy this to the new
- // location and keep looping. If for some reason the copy fails we'll bail out
- // and return false, so the developer is aware that the copy process failed.
- else
- {
- if ( ! $this->copy($item->getPathname(), $target)) return false;
- }
- }
-
- return true;
- }
-
- /**
- * Recursively delete a directory.
- *
- * The directory itself may be optionally preserved.
- *
- * @param string $directory
- * @param bool $preserve
- * @return bool
- */
- public function deleteDirectory($directory, $preserve = false)
- {
- if ( ! $this->isDirectory($directory)) return false;
-
- $items = new FilesystemIterator($directory);
-
- foreach ($items as $item)
- {
- // If the item is a directory, we can just recurse into the function and
- // delete that sub-directory otherwise we'll just delete the file and
- // keep iterating through each file until the directory is cleaned.
- if ($item->isDir())
- {
- $this->deleteDirectory($item->getPathname());
- }
-
- // If the item is just a file, we can go ahead and delete it since we're
- // just looping through and waxing all of the files in this directory
- // and calling directories recursively, so we delete the real path.
- else
- {
- $this->delete($item->getPathname());
- }
- }
-
- if ( ! $preserve) @rmdir($directory);
-
- return true;
- }
-
- /**
- * Empty the specified directory of all files and folders.
- *
- * @param string $directory
- * @return bool
- */
- public function cleanDirectory($directory)
- {
- return $this->deleteDirectory($directory, true);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php b/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php
deleted file mode 100755
index 5e76b2a..0000000
--- a/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php namespace Illuminate\Filesystem;
-
-use Illuminate\Support\ServiceProvider;
-
-class FilesystemServiceProvider extends ServiceProvider {
-
- /**
- * Register the service provider.
- *
- * @return void
- */
- public function register()
- {
- $this->app->bindShared('files', function() { return new Filesystem; });
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Filesystem/composer.json
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Filesystem/composer.json b/vendor/laravel/framework/src/Illuminate/Filesystem/composer.json
deleted file mode 100755
index 7466c89..0000000
--- a/vendor/laravel/framework/src/Illuminate/Filesystem/composer.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "illuminate/filesystem",
- "license": "MIT",
- "authors": [
- {
- "name": "Taylor Otwell",
- "email": "taylorotwell@gmail.com"
- }
- ],
- "require": {
- "php": ">=5.4.0",
- "illuminate/support": "4.2.*",
- "symfony/finder": "2.5.*"
- },
- "autoload": {
- "psr-0": {
- "Illuminate\\Filesystem": ""
- }
- },
- "target-dir": "Illuminate/Filesystem",
- "extra": {
- "branch-alias": {
- "dev-master": "4.2-dev"
- }
- },
- "minimum-stability": "dev"
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php b/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php
deleted file mode 100755
index 9894a73..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php
+++ /dev/null
@@ -1,158 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-class AliasLoader {
-
- /**
- * The array of class aliases.
- *
- * @var array
- */
- protected $aliases;
-
- /**
- * Indicates if a loader has been registered.
- *
- * @var bool
- */
- protected $registered = false;
-
- /**
- * The singleton instance of the loader.
- *
- * @var \Illuminate\Foundation\AliasLoader
- */
- protected static $instance;
-
- /**
- * Create a new class alias loader instance.
- *
- * @param array $aliases
- * @return void
- */
- public function __construct(array $aliases = array())
- {
- $this->aliases = $aliases;
- }
-
- /**
- * Get or create the singleton alias loader instance.
- *
- * @param array $aliases
- * @return \Illuminate\Foundation\AliasLoader
- */
- public static function getInstance(array $aliases = array())
- {
- if (is_null(static::$instance)) return static::$instance = new static($aliases);
-
- $aliases = array_merge(static::$instance->getAliases(), $aliases);
-
- static::$instance->setAliases($aliases);
-
- return static::$instance;
- }
-
- /**
- * Load a class alias if it is registered.
- *
- * @param string $alias
- * @return void
- */
- public function load($alias)
- {
- if (isset($this->aliases[$alias]))
- {
- return class_alias($this->aliases[$alias], $alias);
- }
- }
-
- /**
- * Add an alias to the loader.
- *
- * @param string $class
- * @param string $alias
- * @return void
- */
- public function alias($class, $alias)
- {
- $this->aliases[$class] = $alias;
- }
-
- /**
- * Register the loader on the auto-loader stack.
- *
- * @return void
- */
- public function register()
- {
- if ( ! $this->registered)
- {
- $this->prependToLoaderStack();
-
- $this->registered = true;
- }
- }
-
- /**
- * Prepend the load method to the auto-loader stack.
- *
- * @return void
- */
- protected function prependToLoaderStack()
- {
- spl_autoload_register(array($this, 'load'), true, true);
- }
-
- /**
- * Get the registered aliases.
- *
- * @return array
- */
- public function getAliases()
- {
- return $this->aliases;
- }
-
- /**
- * Set the registered aliases.
- *
- * @param array $aliases
- * @return void
- */
- public function setAliases(array $aliases)
- {
- $this->aliases = $aliases;
- }
-
- /**
- * Indicates if the loader has been registered.
- *
- * @return bool
- */
- public function isRegistered()
- {
- return $this->registered;
- }
-
- /**
- * Set the "registered" state of the loader.
- *
- * @param bool $value
- * @return void
- */
- public function setRegistered($value)
- {
- $this->registered = $value;
- }
-
- /**
- * Set the value of the singleton alias loader.
- *
- * @param \Illuminate\Foundation\AliasLoader $loader
- * @return void
- */
- public static function setInstance($loader)
- {
- static::$instance = $loader;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Application.php b/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
deleted file mode 100755
index fac4e0a..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
+++ /dev/null
@@ -1,1141 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-use Closure;
-use Stack\Builder;
-use Illuminate\Http\Request;
-use Illuminate\Http\Response;
-use Illuminate\Config\FileLoader;
-use Illuminate\Container\Container;
-use Illuminate\Filesystem\Filesystem;
-use Illuminate\Support\Facades\Facade;
-use Illuminate\Events\EventServiceProvider;
-use Illuminate\Routing\RoutingServiceProvider;
-use Illuminate\Exception\ExceptionServiceProvider;
-use Illuminate\Config\FileEnvironmentVariablesLoader;
-use Symfony\Component\HttpKernel\HttpKernelInterface;
-use Symfony\Component\HttpKernel\TerminableInterface;
-use Symfony\Component\HttpKernel\Exception\HttpException;
-use Symfony\Component\Debug\Exception\FatalErrorException;
-use Illuminate\Support\Contracts\ResponsePreparerInterface;
-use Symfony\Component\HttpFoundation\Request as SymfonyRequest;
-use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
-
-class Application extends Container implements HttpKernelInterface, TerminableInterface, ResponsePreparerInterface {
-
- /**
- * The Laravel framework version.
- *
- * @var string
- */
- const VERSION = '4.2.17';
-
- /**
- * Indicates if the application has "booted".
- *
- * @var bool
- */
- protected $booted = false;
-
- /**
- * The array of booting callbacks.
- *
- * @var array
- */
- protected $bootingCallbacks = array();
-
- /**
- * The array of booted callbacks.
- *
- * @var array
- */
- protected $bootedCallbacks = array();
-
- /**
- * The array of finish callbacks.
- *
- * @var array
- */
- protected $finishCallbacks = array();
-
- /**
- * The array of shutdown callbacks.
- *
- * @var array
- */
- protected $shutdownCallbacks = array();
-
- /**
- * All of the developer defined middlewares.
- *
- * @var array
- */
- protected $middlewares = array();
-
- /**
- * All of the registered service providers.
- *
- * @var array
- */
- protected $serviceProviders = array();
-
- /**
- * The names of the loaded service providers.
- *
- * @var array
- */
- protected $loadedProviders = array();
-
- /**
- * The deferred services and their providers.
- *
- * @var array
- */
- protected $deferredServices = array();
-
- /**
- * The request class used by the application.
- *
- * @var string
- */
- protected static $requestClass = 'Illuminate\Http\Request';
-
- /**
- * Create a new Illuminate application instance.
- *
- * @param \Illuminate\Http\Request $request
- * @return void
- */
- public function __construct(Request $request = null)
- {
- $this->registerBaseBindings($request ?: $this->createNewRequest());
-
- $this->registerBaseServiceProviders();
-
- $this->registerBaseMiddlewares();
- }
-
- /**
- * Create a new request instance from the request class.
- *
- * @return \Illuminate\Http\Request
- */
- protected function createNewRequest()
- {
- return forward_static_call(array(static::$requestClass, 'createFromGlobals'));
- }
-
- /**
- * Register the basic bindings into the container.
- *
- * @param \Illuminate\Http\Request $request
- * @return void
- */
- protected function registerBaseBindings($request)
- {
- $this->instance('request', $request);
-
- $this->instance('Illuminate\Container\Container', $this);
- }
-
- /**
- * Register all of the base service providers.
- *
- * @return void
- */
- protected function registerBaseServiceProviders()
- {
- foreach (array('Event', 'Exception', 'Routing') as $name)
- {
- $this->{"register{$name}Provider"}();
- }
- }
-
- /**
- * Register the exception service provider.
- *
- * @return void
- */
- protected function registerExceptionProvider()
- {
- $this->register(new ExceptionServiceProvider($this));
- }
-
- /**
- * Register the routing service provider.
- *
- * @return void
- */
- protected function registerRoutingProvider()
- {
- $this->register(new RoutingServiceProvider($this));
- }
-
- /**
- * Register the event service provider.
- *
- * @return void
- */
- protected function registerEventProvider()
- {
- $this->register(new EventServiceProvider($this));
- }
-
- /**
- * Bind the installation paths to the application.
- *
- * @param array $paths
- * @return void
- */
- public function bindInstallPaths(array $paths)
- {
- $this->instance('path', realpath($paths['app']));
-
- // Here we will bind the install paths into the container as strings that can be
- // accessed from any point in the system. Each path key is prefixed with path
- // so that they have the consistent naming convention inside the container.
- foreach (array_except($paths, array('app')) as $key => $value)
- {
- $this->instance("path.{$key}", realpath($value));
- }
- }
-
- /**
- * Get the application bootstrap file.
- *
- * @return string
- */
- public static function getBootstrapFile()
- {
- return __DIR__.'/start.php';
- }
-
- /**
- * Start the exception handling for the request.
- *
- * @return void
- */
- public function startExceptionHandling()
- {
- $this['exception']->register($this->environment());
-
- $this['exception']->setDebug($this['config']['app.debug']);
- }
-
- /**
- * Get or check the current application environment.
- *
- * @param mixed
- * @return string
- */
- public function environment()
- {
- if (count(func_get_args()) > 0)
- {
- return in_array($this['env'], func_get_args());
- }
-
- return $this['env'];
- }
-
- /**
- * Determine if application is in local environment.
- *
- * @return bool
- */
- public function isLocal()
- {
- return $this['env'] == 'local';
- }
-
- /**
- * Detect the application's current environment.
- *
- * @param array|string $envs
- * @return string
- */
- public function detectEnvironment($envs)
- {
- $args = isset($_SERVER['argv']) ? $_SERVER['argv'] : null;
-
- return $this['env'] = (new EnvironmentDetector())->detect($envs, $args);
- }
-
- /**
- * Determine if we are running in the console.
- *
- * @return bool
- */
- public function runningInConsole()
- {
- return php_sapi_name() == 'cli';
- }
-
- /**
- * Determine if we are running unit tests.
- *
- * @return bool
- */
- public function runningUnitTests()
- {
- return $this['env'] == 'testing';
- }
-
- /**
- * Force register a service provider with the application.
- *
- * @param \Illuminate\Support\ServiceProvider|string $provider
- * @param array $options
- * @return \Illuminate\Support\ServiceProvider
- */
- public function forceRegister($provider, $options = array())
- {
- return $this->register($provider, $options, true);
- }
-
- /**
- * Register a service provider with the application.
- *
- * @param \Illuminate\Support\ServiceProvider|string $provider
- * @param array $options
- * @param bool $force
- * @return \Illuminate\Support\ServiceProvider
- */
- public function register($provider, $options = array(), $force = false)
- {
- if ($registered = $this->getRegistered($provider) && ! $force)
- return $registered;
-
- // If the given "provider" is a string, we will resolve it, passing in the
- // application instance automatically for the developer. This is simply
- // a more convenient way of specifying your service provider classes.
- if (is_string($provider))
- {
- $provider = $this->resolveProviderClass($provider);
- }
-
- $provider->register();
-
- // Once we have registered the service we will iterate through the options
- // and set each of them on the application so they will be available on
- // the actual loading of the service objects and for developer usage.
- foreach ($options as $key => $value)
- {
- $this[$key] = $value;
- }
-
- $this->markAsRegistered($provider);
-
- // If the application has already booted, we will call this boot method on
- // the provider class so it has an opportunity to do its boot logic and
- // will be ready for any usage by the developer's application logics.
- if ($this->booted) $provider->boot();
-
- return $provider;
- }
-
- /**
- * Get the registered service provider instance if it exists.
- *
- * @param \Illuminate\Support\ServiceProvider|string $provider
- * @return \Illuminate\Support\ServiceProvider|null
- */
- public function getRegistered($provider)
- {
- $name = is_string($provider) ? $provider : get_class($provider);
-
- if (array_key_exists($name, $this->loadedProviders))
- {
- return array_first($this->serviceProviders, function($key, $value) use ($name)
- {
- return get_class($value) == $name;
- });
- }
- }
-
- /**
- * Resolve a service provider instance from the class name.
- *
- * @param string $provider
- * @return \Illuminate\Support\ServiceProvider
- */
- public function resolveProviderClass($provider)
- {
- return new $provider($this);
- }
-
- /**
- * Mark the given provider as registered.
- *
- * @param \Illuminate\Support\ServiceProvider
- * @return void
- */
- protected function markAsRegistered($provider)
- {
- $this['events']->fire($class = get_class($provider), array($provider));
-
- $this->serviceProviders[] = $provider;
-
- $this->loadedProviders[$class] = true;
- }
-
- /**
- * Load and boot all of the remaining deferred providers.
- *
- * @return void
- */
- public function loadDeferredProviders()
- {
- // We will simply spin through each of the deferred providers and register each
- // one and boot them if the application has booted. This should make each of
- // the remaining services available to this application for immediate use.
- foreach ($this->deferredServices as $service => $provider)
- {
- $this->loadDeferredProvider($service);
- }
-
- $this->deferredServices = array();
- }
-
- /**
- * Load the provider for a deferred service.
- *
- * @param string $service
- * @return void
- */
- protected function loadDeferredProvider($service)
- {
- $provider = $this->deferredServices[$service];
-
- // If the service provider has not already been loaded and registered we can
- // register it with the application and remove the service from this list
- // of deferred services, since it will already be loaded on subsequent.
- if ( ! isset($this->loadedProviders[$provider]))
- {
- $this->registerDeferredProvider($provider, $service);
- }
- }
-
- /**
- * Register a deferred provider and service.
- *
- * @param string $provider
- * @param string $service
- * @return void
- */
- public function registerDeferredProvider($provider, $service = null)
- {
- // Once the provider that provides the deferred service has been registered we
- // will remove it from our local list of the deferred services with related
- // providers so that this container does not try to resolve it out again.
- if ($service) unset($this->deferredServices[$service]);
-
- $this->register($instance = new $provider($this));
-
- if ( ! $this->booted)
- {
- $this->booting(function() use ($instance)
- {
- $instance->boot();
- });
- }
- }
-
- /**
- * Resolve the given type from the container.
- *
- * (Overriding Container::make)
- *
- * @param string $abstract
- * @param array $parameters
- * @return mixed
- */
- public function make($abstract, $parameters = array())
- {
- $abstract = $this->getAlias($abstract);
-
- if (isset($this->deferredServices[$abstract]))
- {
- $this->loadDeferredProvider($abstract);
- }
-
- return parent::make($abstract, $parameters);
- }
-
- /**
- * Determine if the given abstract type has been bound.
- *
- * (Overriding Container::bound)
- *
- * @param string $abstract
- * @return bool
- */
- public function bound($abstract)
- {
- return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
- }
-
- /**
- * "Extend" an abstract type in the container.
- *
- * (Overriding Container::extend)
- *
- * @param string $abstract
- * @param \Closure $closure
- * @return void
- *
- * @throws \InvalidArgumentException
- */
- public function extend($abstract, Closure $closure)
- {
- $abstract = $this->getAlias($abstract);
-
- if (isset($this->deferredServices[$abstract]))
- {
- $this->loadDeferredProvider($abstract);
- }
-
- return parent::extend($abstract, $closure);
- }
-
- /**
- * Register a "before" application filter.
- *
- * @param \Closure|string $callback
- * @return void
- */
- public function before($callback)
- {
- return $this['router']->before($callback);
- }
-
- /**
- * Register an "after" application filter.
- *
- * @param \Closure|string $callback
- * @return void
- */
- public function after($callback)
- {
- return $this['router']->after($callback);
- }
-
- /**
- * Register a "finish" application filter.
- *
- * @param \Closure|string $callback
- * @return void
- */
- public function finish($callback)
- {
- $this->finishCallbacks[] = $callback;
- }
-
- /**
- * Register a "shutdown" callback.
- *
- * @param callable $callback
- * @return void
- */
- public function shutdown(callable $callback = null)
- {
- if (is_null($callback))
- {
- $this->fireAppCallbacks($this->shutdownCallbacks);
- }
- else
- {
- $this->shutdownCallbacks[] = $callback;
- }
- }
-
- /**
- * Register a function for determining when to use array sessions.
- *
- * @param \Closure $callback
- * @return void
- */
- public function useArraySessions(Closure $callback)
- {
- $this->bind('session.reject', function() use ($callback)
- {
- return $callback;
- });
- }
-
- /**
- * Determine if the application has booted.
- *
- * @return bool
- */
- public function isBooted()
- {
- return $this->booted;
- }
-
- /**
- * Boot the application's service providers.
- *
- * @return void
- */
- public function boot()
- {
- if ($this->booted) return;
-
- array_walk($this->serviceProviders, function($p) { $p->boot(); });
-
- $this->bootApplication();
- }
-
- /**
- * Boot the application and fire app callbacks.
- *
- * @return void
- */
- protected function bootApplication()
- {
- // Once the application has booted we will also fire some "booted" callbacks
- // for any listeners that need to do work after this initial booting gets
- // finished. This is useful when ordering the boot-up processes we run.
- $this->fireAppCallbacks($this->bootingCallbacks);
-
- $this->booted = true;
-
- $this->fireAppCallbacks($this->bootedCallbacks);
- }
-
- /**
- * Register a new boot listener.
- *
- * @param mixed $callback
- * @return void
- */
- public function booting($callback)
- {
- $this->bootingCallbacks[] = $callback;
- }
-
- /**
- * Register a new "booted" listener.
- *
- * @param mixed $callback
- * @return void
- */
- public function booted($callback)
- {
- $this->bootedCallbacks[] = $callback;
-
- if ($this->isBooted()) $this->fireAppCallbacks(array($callback));
- }
-
- /**
- * Run the application and send the response.
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @return void
- */
- public function run(SymfonyRequest $request = null)
- {
- $request = $request ?: $this['request'];
-
- $response = with($stack = $this->getStackedClient())->handle($request);
-
- $response->send();
-
- $stack->terminate($request, $response);
- }
-
- /**
- * Get the stacked HTTP kernel for the application.
- *
- * @return \Symfony\Component\HttpKernel\HttpKernelInterface
- */
- protected function getStackedClient()
- {
- $sessionReject = $this->bound('session.reject') ? $this['session.reject'] : null;
-
- $client = (new Builder)
- ->push('Illuminate\Cookie\Guard', $this['encrypter'])
- ->push('Illuminate\Cookie\Queue', $this['cookie'])
- ->push('Illuminate\Session\Middleware', $this['session'], $sessionReject);
-
- $this->mergeCustomMiddlewares($client);
-
- return $client->resolve($this);
- }
-
- /**
- * Merge the developer defined middlewares onto the stack.
- *
- * @param \Stack\Builder
- * @return void
- */
- protected function mergeCustomMiddlewares(Builder $stack)
- {
- foreach ($this->middlewares as $middleware)
- {
- list($class, $parameters) = array_values($middleware);
-
- array_unshift($parameters, $class);
-
- call_user_func_array(array($stack, 'push'), $parameters);
- }
- }
-
- /**
- * Register the default, but optional middlewares.
- *
- * @return void
- */
- protected function registerBaseMiddlewares()
- {
- //
- }
-
- /**
- * Add a HttpKernel middleware onto the stack.
- *
- * @param string $class
- * @param array $parameters
- * @return $this
- */
- public function middleware($class, array $parameters = array())
- {
- $this->middlewares[] = compact('class', 'parameters');
-
- return $this;
- }
-
- /**
- * Remove a custom middleware from the application.
- *
- * @param string $class
- * @return void
- */
- public function forgetMiddleware($class)
- {
- $this->middlewares = array_filter($this->middlewares, function($m) use ($class)
- {
- return $m['class'] != $class;
- });
- }
-
- /**
- * Handle the given request and get the response.
- *
- * Provides compatibility with BrowserKit functional testing.
- *
- * @implements HttpKernelInterface::handle
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @param int $type
- * @param bool $catch
- * @return \Symfony\Component\HttpFoundation\Response
- *
- * @throws \Exception
- */
- public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
- {
- try
- {
- $this->refreshRequest($request = Request::createFromBase($request));
-
- $this->boot();
-
- return $this->dispatch($request);
- }
- catch (\Exception $e)
- {
- if ( ! $catch || $this->runningUnitTests()) throw $e;
-
- return $this['exception']->handleException($e);
- }
- }
-
- /**
- * Handle the given request and get the response.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function dispatch(Request $request)
- {
- if ($this->isDownForMaintenance())
- {
- $response = $this['events']->until('illuminate.app.down');
-
- if ( ! is_null($response)) return $this->prepareResponse($response, $request);
- }
-
- if ($this->runningUnitTests() && ! $this['session']->isStarted())
- {
- $this['session']->start();
- }
-
- return $this['router']->dispatch($this->prepareRequest($request));
- }
-
- /**
- * Call the "finish" and "shutdown" callbacks assigned to the application.
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @param \Symfony\Component\HttpFoundation\Response $response
- * @return void
- */
- public function terminate(SymfonyRequest $request, SymfonyResponse $response)
- {
- $this->callFinishCallbacks($request, $response);
-
- $this->shutdown();
- }
-
- /**
- * Refresh the bound request instance in the container.
- *
- * @param \Illuminate\Http\Request $request
- * @return void
- */
- protected function refreshRequest(Request $request)
- {
- $this->instance('request', $request);
-
- Facade::clearResolvedInstance('request');
- }
-
- /**
- * Call the "finish" callbacks assigned to the application.
- *
- * @param \Symfony\Component\HttpFoundation\Request $request
- * @param \Symfony\Component\HttpFoundation\Response $response
- * @return void
- */
- public function callFinishCallbacks(SymfonyRequest $request, SymfonyResponse $response)
- {
- foreach ($this->finishCallbacks as $callback)
- {
- call_user_func($callback, $request, $response);
- }
- }
-
- /**
- * Call the booting callbacks for the application.
- *
- * @param array $callbacks
- * @return void
- */
- protected function fireAppCallbacks(array $callbacks)
- {
- foreach ($callbacks as $callback)
- {
- call_user_func($callback, $this);
- }
- }
-
- /**
- * Prepare the request by injecting any services.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Request
- */
- public function prepareRequest(Request $request)
- {
- if ( ! is_null($this['config']['session.driver']) && ! $request->hasSession())
- {
- $request->setSession($this['session']->driver());
- }
-
- return $request;
- }
-
- /**
- * Prepare the given value as a Response object.
- *
- * @param mixed $value
- * @return \Symfony\Component\HttpFoundation\Response
- */
- public function prepareResponse($value)
- {
- if ( ! $value instanceof SymfonyResponse) $value = new Response($value);
-
- return $value->prepare($this['request']);
- }
-
- /**
- * Determine if the application is ready for responses.
- *
- * @return bool
- */
- public function readyForResponses()
- {
- return $this->booted;
- }
-
- /**
- * Determine if the application is currently down for maintenance.
- *
- * @return bool
- */
- public function isDownForMaintenance()
- {
- return file_exists($this['config']['app.manifest'].'/down');
- }
-
- /**
- * Register a maintenance mode event listener.
- *
- * @param \Closure $callback
- * @return void
- */
- public function down(Closure $callback)
- {
- $this['events']->listen('illuminate.app.down', $callback);
- }
-
- /**
- * Throw an HttpException with the given data.
- *
- * @param int $code
- * @param string $message
- * @param array $headers
- * @return void
- *
- * @throws \Symfony\Component\HttpKernel\Exception\HttpException
- * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- */
- public function abort($code, $message = '', array $headers = array())
- {
- if ($code == 404)
- {
- throw new NotFoundHttpException($message);
- }
-
- throw new HttpException($code, $message, null, $headers);
- }
-
- /**
- * Register a 404 error handler.
- *
- * @param \Closure $callback
- * @return void
- */
- public function missing(Closure $callback)
- {
- $this->error(function(NotFoundHttpException $e) use ($callback)
- {
- return call_user_func($callback, $e);
- });
- }
-
- /**
- * Register an application error handler.
- *
- * @param \Closure $callback
- * @return void
- */
- public function error(Closure $callback)
- {
- $this['exception']->error($callback);
- }
-
- /**
- * Register an error handler at the bottom of the stack.
- *
- * @param \Closure $callback
- * @return void
- */
- public function pushError(Closure $callback)
- {
- $this['exception']->pushError($callback);
- }
-
- /**
- * Register an error handler for fatal errors.
- *
- * @param \Closure $callback
- * @return void
- */
- public function fatal(Closure $callback)
- {
- $this->error(function(FatalErrorException $e) use ($callback)
- {
- return call_user_func($callback, $e);
- });
- }
-
- /**
- * Get the configuration loader instance.
- *
- * @return \Illuminate\Config\LoaderInterface
- */
- public function getConfigLoader()
- {
- return new FileLoader(new Filesystem, $this['path'].'/config');
- }
-
- /**
- * Get the environment variables loader instance.
- *
- * @return \Illuminate\Config\EnvironmentVariablesLoaderInterface
- */
- public function getEnvironmentVariablesLoader()
- {
- return new FileEnvironmentVariablesLoader(new Filesystem, $this['path.base']);
- }
-
- /**
- * Get the service provider repository instance.
- *
- * @return \Illuminate\Foundation\ProviderRepository
- */
- public function getProviderRepository()
- {
- $manifest = $this['config']['app.manifest'];
-
- return new ProviderRepository(new Filesystem, $manifest);
- }
-
- /**
- * Get the service providers that have been loaded.
- *
- * @return array
- */
- public function getLoadedProviders()
- {
- return $this->loadedProviders;
- }
-
- /**
- * Set the application's deferred services.
- *
- * @param array $services
- * @return void
- */
- public function setDeferredServices(array $services)
- {
- $this->deferredServices = $services;
- }
-
- /**
- * Determine if the given service is a deferred service.
- *
- * @param string $service
- * @return bool
- */
- public function isDeferredService($service)
- {
- return isset($this->deferredServices[$service]);
- }
-
- /**
- * Get or set the request class for the application.
- *
- * @param string $class
- * @return string
- */
- public static function requestClass($class = null)
- {
- if ( ! is_null($class)) static::$requestClass = $class;
-
- return static::$requestClass;
- }
-
- /**
- * Set the application request for the console environment.
- *
- * @return void
- */
- public function setRequestForConsoleEnvironment()
- {
- $url = $this['config']->get('app.url', 'http://localhost');
-
- $parameters = array($url, 'GET', array(), array(), array(), $_SERVER);
-
- $this->refreshRequest(static::onRequest('create', $parameters));
- }
-
- /**
- * Call a method on the default request class.
- *
- * @param string $method
- * @param array $parameters
- * @return mixed
- */
- public static function onRequest($method, $parameters = array())
- {
- return forward_static_call_array(array(static::requestClass(), $method), $parameters);
- }
-
- /**
- * Get the current application locale.
- *
- * @return string
- */
- public function getLocale()
- {
- return $this['config']->get('app.locale');
- }
-
- /**
- * Set the current application locale.
- *
- * @param string $locale
- * @return void
- */
- public function setLocale($locale)
- {
- $this['config']->set('app.locale', $locale);
-
- $this['translator']->setLocale($locale);
-
- $this['events']->fire('locale.changed', array($locale));
- }
-
- /**
- * Register the core class aliases in the container.
- *
- * @return void
- */
- public function registerCoreContainerAliases()
- {
- $aliases = array(
- 'app' => 'Illuminate\Foundation\Application',
- 'artisan' => 'Illuminate\Console\Application',
- 'auth' => 'Illuminate\Auth\AuthManager',
- 'auth.reminder.repository' => 'Illuminate\Auth\Reminders\ReminderRepositoryInterface',
- 'blade.compiler' => 'Illuminate\View\Compilers\BladeCompiler',
- 'cache' => 'Illuminate\Cache\CacheManager',
- 'cache.store' => 'Illuminate\Cache\Repository',
- 'config' => 'Illuminate\Config\Repository',
- 'cookie' => 'Illuminate\Cookie\CookieJar',
- 'encrypter' => 'Illuminate\Encryption\Encrypter',
- 'db' => 'Illuminate\Database\DatabaseManager',
- 'events' => 'Illuminate\Events\Dispatcher',
- 'files' => 'Illuminate\Filesystem\Filesystem',
- 'form' => 'Illuminate\Html\FormBuilder',
- 'hash' => 'Illuminate\Hashing\HasherInterface',
- 'html' => 'Illuminate\Html\HtmlBuilder',
- 'translator' => 'Illuminate\Translation\Translator',
- 'log' => 'Illuminate\Log\Writer',
- 'mailer' => 'Illuminate\Mail\Mailer',
- 'paginator' => 'Illuminate\Pagination\Factory',
- 'auth.reminder' => 'Illuminate\Auth\Reminders\PasswordBroker',
- 'queue' => 'Illuminate\Queue\QueueManager',
- 'redirect' => 'Illuminate\Routing\Redirector',
- 'redis' => 'Illuminate\Redis\Database',
- 'request' => 'Illuminate\Http\Request',
- 'router' => 'Illuminate\Routing\Router',
- 'session' => 'Illuminate\Session\SessionManager',
- 'session.store' => 'Illuminate\Session\Store',
- 'remote' => 'Illuminate\Remote\RemoteManager',
- 'url' => 'Illuminate\Routing\UrlGenerator',
- 'validator' => 'Illuminate\Validation\Factory',
- 'view' => 'Illuminate\View\Factory',
- );
-
- foreach ($aliases as $key => $alias)
- {
- $this->alias($key, $alias);
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Artisan.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Artisan.php b/vendor/laravel/framework/src/Illuminate/Foundation/Artisan.php
deleted file mode 100755
index 2b6f23d..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Artisan.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-use Illuminate\Console\Application as ConsoleApplication;
-
-class Artisan {
-
- /**
- * The application instance.
- *
- * @var \Illuminate\Foundation\Application
- */
- protected $app;
-
- /**
- * The Artisan console instance.
- *
- * @var \Illuminate\Console\Application
- */
- protected $artisan;
-
- /**
- * Create a new Artisan command runner instance.
- *
- * @param \Illuminate\Foundation\Application $app
- * @return void
- */
- public function __construct(Application $app)
- {
- $this->app = $app;
- }
-
- /**
- * Get the Artisan console instance.
- *
- * @return \Illuminate\Console\Application
- */
- protected function getArtisan()
- {
- if ( ! is_null($this->artisan)) return $this->artisan;
-
- $this->app->loadDeferredProviders();
-
- $this->artisan = ConsoleApplication::make($this->app);
-
- return $this->artisan->boot();
- }
-
- /**
- * Dynamically pass all missing methods to console Artisan.
- *
- * @param string $method
- * @param array $parameters
- * @return mixed
- */
- public function __call($method, $parameters)
- {
- return call_user_func_array(array($this->getArtisan(), $method), $parameters);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/AssetPublisher.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/AssetPublisher.php b/vendor/laravel/framework/src/Illuminate/Foundation/AssetPublisher.php
deleted file mode 100755
index a7fd36d..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/AssetPublisher.php
+++ /dev/null
@@ -1,94 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-use Illuminate\Filesystem\Filesystem;
-
-class AssetPublisher {
-
- /**
- * The filesystem instance.
- *
- * @var \Illuminate\Filesystem\Filesystem
- */
- protected $files;
-
- /**
- * The path where assets should be published.
- *
- * @var string
- */
- protected $publishPath;
-
- /**
- * The path where packages are located.
- *
- * @var string
- */
- protected $packagePath;
-
- /**
- * Create a new asset publisher instance.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @param string $publishPath
- * @return void
- */
- public function __construct(Filesystem $files, $publishPath)
- {
- $this->files = $files;
- $this->publishPath = $publishPath;
- }
-
- /**
- * Copy all assets from a given path to the publish path.
- *
- * @param string $name
- * @param string $source
- * @return bool
- *
- * @throws \RuntimeException
- */
- public function publish($name, $source)
- {
- $destination = $this->publishPath."/packages/{$name}";
-
- $success = $this->files->copyDirectory($source, $destination);
-
- if ( ! $success)
- {
- throw new \RuntimeException("Unable to publish assets.");
- }
-
- return $success;
- }
-
- /**
- * Publish a given package's assets to the publish path.
- *
- * @param string $package
- * @param string $packagePath
- * @return bool
- */
- public function publishPackage($package, $packagePath = null)
- {
- $packagePath = $packagePath ?: $this->packagePath;
-
- // Once we have the package path we can just create the source and destination
- // path and copy the directory from one to the other. The directory copy is
- // recursive so all nested files and directories will get copied as well.
- $source = $packagePath."/{$package}/public";
-
- return $this->publish($package, $source);
- }
-
- /**
- * Set the default package path.
- *
- * @param string $packagePath
- * @return void
- */
- public function setPackagePath($packagePath)
- {
- $this->packagePath = $packagePath;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Composer.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Composer.php b/vendor/laravel/framework/src/Illuminate/Foundation/Composer.php
deleted file mode 100755
index abe7102..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Composer.php
+++ /dev/null
@@ -1,98 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-use Illuminate\Filesystem\Filesystem;
-use Symfony\Component\Process\Process;
-
-class Composer {
-
- /**
- * The filesystem instance.
- *
- * @var \Illuminate\Filesystem\Filesystem
- */
- protected $files;
-
- /**
- * The working path to regenerate from.
- *
- * @var string
- */
- protected $workingPath;
-
- /**
- * Create a new Composer manager instance.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @param string $workingPath
- * @return void
- */
- public function __construct(Filesystem $files, $workingPath = null)
- {
- $this->files = $files;
- $this->workingPath = $workingPath;
- }
-
- /**
- * Regenerate the Composer autoloader files.
- *
- * @param string $extra
- * @return void
- */
- public function dumpAutoloads($extra = '')
- {
- $process = $this->getProcess();
-
- $process->setCommandLine(trim($this->findComposer().' dump-autoload '.$extra));
-
- $process->run();
- }
-
- /**
- * Regenerate the optimized Composer autoloader files.
- *
- * @return void
- */
- public function dumpOptimized()
- {
- $this->dumpAutoloads('--optimize');
- }
-
- /**
- * Get the composer command for the environment.
- *
- * @return string
- */
- protected function findComposer()
- {
- if ($this->files->exists($this->workingPath.'/composer.phar'))
- {
- return '"'.PHP_BINARY.'" composer.phar';
- }
-
- return 'composer';
- }
-
- /**
- * Get a new Symfony process instance.
- *
- * @return \Symfony\Component\Process\Process
- */
- protected function getProcess()
- {
- return (new Process('', $this->workingPath))->setTimeout(null);
- }
-
- /**
- * Set the working path used by the class.
- *
- * @param string $path
- * @return $this
- */
- public function setWorkingPath($path)
- {
- $this->workingPath = realpath($path);
-
- return $this;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/ConfigPublisher.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/ConfigPublisher.php b/vendor/laravel/framework/src/Illuminate/Foundation/ConfigPublisher.php
deleted file mode 100755
index fcb4dc8..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/ConfigPublisher.php
+++ /dev/null
@@ -1,144 +0,0 @@
-<?php namespace Illuminate\Foundation;
-
-use Illuminate\Filesystem\Filesystem;
-
-class ConfigPublisher {
-
- /**
- * The filesystem instance.
- *
- * @var \Illuminate\Filesystem\Filesystem
- */
- protected $files;
-
- /**
- * The destination of the config files.
- *
- * @var string
- */
- protected $publishPath;
-
- /**
- * The path to the application's packages.
- *
- * @var string
- */
- protected $packagePath;
-
- /**
- * Create a new configuration publisher instance.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @param string $publishPath
- * @return void
- */
- public function __construct(Filesystem $files, $publishPath)
- {
- $this->files = $files;
- $this->publishPath = $publishPath;
- }
-
- /**
- * Publish configuration files from a given path.
- *
- * @param string $package
- * @param string $source
- * @return bool
- */
- public function publish($package, $source)
- {
- $destination = $this->getDestinationPath($package);
-
- $this->makeDestination($destination);
-
- return $this->files->copyDirectory($source, $destination);
- }
-
- /**
- * Publish the configuration files for a package.
- *
- * @param string $package
- * @param string $packagePath
- * @return bool
- */
- public function publishPackage($package, $packagePath = null)
- {
- // First we will figure out the source of the package's configuration location
- // which we do by convention. Once we have that we will move the files over
- // to the "main" configuration directory for this particular application.
- $path = $packagePath ?: $this->packagePath;
-
- $source = $this->getSource($package, $path);
-
- return $this->publish($package, $source);
- }
-
- /**
- * Get the source configuration directory to publish.
- *
- * @param string $package
- * @param string $packagePath
- * @return string
- *
- * @throws \InvalidArgumentException
- */
- protected function getSource($package, $packagePath)
- {
- $source = $packagePath."/{$package}/src/config";
-
- if ( ! $this->files->isDirectory($source))
- {
- throw new \InvalidArgumentException("Configuration not found.");
- }
-
- return $source;
- }
-
- /**
- * Create the destination directory if it doesn't exist.
- *
- * @param string $destination
- * @return void
- */
- protected function makeDestination($destination)
- {
- if ( ! $this->files->isDirectory($destination))
- {
- $this->files->makeDirectory($destination, 0777, true);
- }
- }
-
- /**
- * Determine if a given package has already been published.
- *
- * @param string $package
- * @return bool
- */
- public function alreadyPublished($package)
- {
- return $this->files->isDirectory($this->getDestinationPath($package));
- }
-
- /**
- * Get the target destination path for the configuration files.
- *
- * @param string $package
- * @return string
- */
- public function getDestinationPath($package)
- {
- return $this->publishPath."/packages/{$package}";
- }
-
- /**
- * Set the default package path.
- *
- * @param string $packagePath
- * @return void
- */
- public function setPackagePath($packagePath)
- {
- $this->packagePath = $packagePath;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/AssetPublishCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/AssetPublishCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/AssetPublishCommand.php
deleted file mode 100755
index d9cbf9d..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/AssetPublishCommand.php
+++ /dev/null
@@ -1,170 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Symfony\Component\Finder\Finder;
-use Illuminate\Foundation\AssetPublisher;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-
-class AssetPublishCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'asset:publish';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Publish a package's assets to the public directory";
-
- /**
- * The asset publisher instance.
- *
- * @var \Illuminate\Foundation\AssetPublisher
- */
- protected $assets;
-
- /**
- * Create a new asset publish command instance.
- *
- * @param \Illuminate\Foundation\AssetPublisher $assets
- * @return void
- */
- public function __construct(AssetPublisher $assets)
- {
- parent::__construct();
-
- $this->assets = $assets;
- }
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- foreach ($this->getPackages() as $package)
- {
- $this->publishAssets($package);
- }
- }
-
- /**
- * Publish the assets for a given package name.
- *
- * @param string $package
- * @return void
- */
- protected function publishAssets($package)
- {
- if ( ! is_null($path = $this->getPath()))
- {
- $this->assets->publish($package, $path);
- }
- else
- {
- $this->assets->publishPackage($package);
- }
-
- $this->output->writeln('<info>Assets published for package:</info> '.$package);
- }
-
- /**
- * Get the name of the package being published.
- *
- * @return array
- */
- protected function getPackages()
- {
- if ( ! is_null($package = $this->input->getArgument('package')))
- {
- return array($package);
- }
- elseif ( ! is_null($bench = $this->input->getOption('bench')))
- {
- return array($bench);
- }
-
- return $this->findAllAssetPackages();
- }
-
- /**
- * Find all the asset hosting packages in the system.
- *
- * @return array
- */
- protected function findAllAssetPackages()
- {
- $vendor = $this->laravel['path.base'].'/vendor';
-
- $packages = array();
-
- foreach (Finder::create()->directories()->in($vendor)->name('public')->depth('< 3') as $package)
- {
- $packages[] = $package->getRelativePath();
- }
-
- return $packages;
- }
-
- /**
- * Get the specified path to the files.
- *
- * @return string
- */
- protected function getPath()
- {
- $path = $this->input->getOption('path');
-
- // First we will check for an explicitly specified path from the user. If one
- // exists we will use that as the path to the assets. This allows the free
- // storage of assets wherever is best for this developer's web projects.
- if ( ! is_null($path))
- {
- return $this->laravel['path.base'].'/'.$path;
- }
-
- // If a "bench" option was specified, we will publish from a workbench as the
- // source location. This is mainly just a short-cut for having to manually
- // specify the full workbench path using the --path command line option.
- $bench = $this->input->getOption('bench');
-
- if ( ! is_null($bench))
- {
- return $this->laravel['path.base']."/workbench/{$bench}/public";
- }
- }
-
- /**
- * Get the console command arguments.
- *
- * @return array
- */
- protected function getArguments()
- {
- return array(
- array('package', InputArgument::OPTIONAL, 'The name of package being published.'),
- );
- }
-
- /**
- * Get the console command options.
- *
- * @return array
- */
- protected function getOptions()
- {
- return array(
- array('bench', null, InputOption::VALUE_OPTIONAL, 'The name of the workbench to publish.', null),
-
- array('path', null, InputOption::VALUE_OPTIONAL, 'The path to the asset files.', null),
- );
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/AutoloadCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/AutoloadCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/AutoloadCommand.php
deleted file mode 100755
index df32177..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/AutoloadCommand.php
+++ /dev/null
@@ -1,91 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Illuminate\Foundation\Composer;
-use Symfony\Component\Finder\Finder;
-
-class AutoloadCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'dump-autoload';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Regenerate framework autoload files";
-
- /**
- * The composer instance.
- *
- * @var \Illuminate\Foundation\Composer
- */
- protected $composer;
-
- /**
- * Create a new optimize command instance.
- *
- * @param \Illuminate\Foundation\Composer $composer
- * @return void
- */
- public function __construct(Composer $composer)
- {
- parent::__construct();
-
- $this->composer = $composer;
- }
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- $this->call('optimize');
-
- foreach ($this->findWorkbenches() as $workbench)
- {
- $this->comment("Running for workbench [{$workbench['name']}]...");
-
- $this->composer->setWorkingPath($workbench['path'])->dumpOptimized();
- }
- }
-
- /**
- * Get all of the workbench directories.
- *
- * @return array
- */
- protected function findWorkbenches()
- {
- $results = array();
-
- foreach ($this->getWorkbenchComposers() as $file)
- {
- $results[] = array('name' => $file->getRelativePath(), 'path' => $file->getPath());
- }
-
- return $results;
- }
-
- /**
- * Get all of the workbench composer files.
- *
- * @return \Symfony\Component\Finder\Finder
- */
- protected function getWorkbenchComposers()
- {
- $workbench = $this->laravel['path.base'].'/workbench';
-
- if ( ! is_dir($workbench)) return array();
-
- return Finder::create()->files()->followLinks()->in($workbench)->name('composer.json')->depth('< 3');
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/ChangesCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ChangesCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/ChangesCommand.php
deleted file mode 100755
index 698094e..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ChangesCommand.php
+++ /dev/null
@@ -1,112 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Symfony\Component\Console\Input\InputArgument;
-
-class ChangesCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'changes';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Display the framework change list";
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- list($version, $changes) = $this->getChangeVersion($this->getChangesArray());
-
- $this->writeHeader($version);
-
- foreach ($changes as $change)
- {
- $this->line($this->formatMessage($change));
- }
- }
-
- /**
- * Write the heading for the change log.
- *
- * @param string $version
- * @return void
- */
- protected function writeHeader($version)
- {
- $this->info($heading = 'Changes For Laravel '.$version);
-
- $this->comment(str_repeat('-', strlen($heading)));
- }
-
- /**
- * Format the given change message.
- *
- * @param array $change
- * @return string
- */
- protected function formatMessage(array $change)
- {
- $message = '<comment>-></comment> <info>'.$change['message'].'</info>';
-
- if ( ! is_null($change['backport']))
- {
- $message .= ' <comment>(Backported to '.$change['backport'].')</comment>';
- }
-
- return $message;
- }
-
- /**
- * Get the change list for the specified version.
- *
- * @param array $changes
- * @return array
- */
- protected function getChangeVersion(array $changes)
- {
- $version = $this->argument('version');
-
- if (is_null($version))
- {
- $latest = head(array_keys($changes));
-
- return array($latest, $changes[$latest]);
- }
-
- return array($version, array_get($changes, $version, array()));
- }
-
- /**
- * Get the changes array from disk.
- *
- * @return array
- */
- protected function getChangesArray()
- {
- return json_decode(file_get_contents(__DIR__.'/../changes.json'), true);
- }
-
- /**
- * Get the console command arguments.
- *
- * @return array
- */
- protected function getArguments()
- {
- return array(
- array('version', InputArgument::OPTIONAL, 'The version to list changes for.'),
- );
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php
deleted file mode 100755
index 43e0c04..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-
-class ClearCompiledCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'clear-compiled';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Remove the compiled class file";
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- if (file_exists($path = $this->laravel['path.base'].'/bootstrap/compiled.php'))
- {
- @unlink($path);
- }
-
- if (file_exists($path = $this->laravel['config']['app.manifest'].'/services.json'))
- {
- @unlink($path);
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/CommandMakeCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/CommandMakeCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/CommandMakeCommand.php
deleted file mode 100755
index ee03af9..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/CommandMakeCommand.php
+++ /dev/null
@@ -1,156 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Illuminate\Filesystem\Filesystem;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-
-class CommandMakeCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'command:make';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Create a new Artisan command";
-
- /**
- * Create a new command creator command.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @return void
- */
- public function __construct(Filesystem $files)
- {
- parent::__construct();
-
- $this->files = $files;
- }
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- $path = $this->getPath();
-
- $stub = $this->files->get(__DIR__.'/stubs/command.stub');
-
- // We'll grab the class name to determine the file name. Since applications are
- // typically using the PSR-0 standards we can safely assume the classes name
- // will correspond to what the actual file should be stored as on storage.
- $file = $path.'/'.$this->input->getArgument('name').'.php';
-
- $this->writeCommand($file, $stub);
- }
-
- /**
- * Write the finished command file to disk.
- *
- * @param string $file
- * @param string $stub
- * @return void
- */
- protected function writeCommand($file, $stub)
- {
- if ( ! file_exists($file))
- {
- $this->files->put($file, $this->formatStub($stub));
-
- $this->info('Command created successfully.');
- }
- else
- {
- $this->error('Command already exists!');
- }
- }
-
- /**
- * Format the command class stub.
- *
- * @param string $stub
- * @return string
- */
- protected function formatStub($stub)
- {
- $stub = str_replace('{{class}}', $this->input->getArgument('name'), $stub);
-
- if ( ! is_null($this->option('command')))
- {
- $stub = str_replace('command:name', $this->option('command'), $stub);
- }
-
- return $this->addNamespace($stub);
- }
-
- /**
- * Add the proper namespace to the command.
- *
- * @param string $stub
- * @return string
- */
- protected function addNamespace($stub)
- {
- if ( ! is_null($namespace = $this->input->getOption('namespace')))
- {
- return str_replace('{{namespace}}', ' namespace '.$namespace.';', $stub);
- }
-
- return str_replace('{{namespace}}', '', $stub);
- }
-
- /**
- * Get the path where the command should be stored.
- *
- * @return string
- */
- protected function getPath()
- {
- $path = $this->input->getOption('path');
-
- if (is_null($path))
- {
- return $this->laravel['path'].'/commands';
- }
-
- return $this->laravel['path.base'].'/'.$path;
- }
-
- /**
- * Get the console command arguments.
- *
- * @return array
- */
- protected function getArguments()
- {
- return array(
- array('name', InputArgument::REQUIRED, 'The name of the command.'),
- );
- }
-
- /**
- * Get the console command options.
- *
- * @return array
- */
- protected function getOptions()
- {
- return array(
- array('command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned.', null),
-
- array('path', null, InputOption::VALUE_OPTIONAL, 'The path where the command should be stored.', null),
-
- array('namespace', null, InputOption::VALUE_OPTIONAL, 'The command namespace.', null),
- );
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigPublishCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigPublishCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigPublishCommand.php
deleted file mode 100755
index d7e9d1a..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/ConfigPublishCommand.php
+++ /dev/null
@@ -1,116 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Illuminate\Console\ConfirmableTrait;
-use Illuminate\Foundation\ConfigPublisher;
-use Symfony\Component\Console\Input\InputOption;
-use Symfony\Component\Console\Input\InputArgument;
-
-class ConfigPublishCommand extends Command {
-
- use ConfirmableTrait;
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'config:publish';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Publish a package's configuration to the application";
-
- /**
- * The config publisher instance.
- *
- * @var \Illuminate\Foundation\ConfigPublisher
- */
- protected $config;
-
- /**
- * Create a new configuration publish command instance.
- *
- * @param \Illuminate\Foundation\ConfigPublisher $config
- * @return void
- */
- public function __construct(ConfigPublisher $config)
- {
- parent::__construct();
-
- $this->config = $config;
- }
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- $package = $this->input->getArgument('package');
-
- $proceed = $this->confirmToProceed('Config Already Published!', function() use ($package)
- {
- return $this->config->alreadyPublished($package);
- });
-
- if ( ! $proceed) return;
-
- if ( ! is_null($path = $this->getPath()))
- {
- $this->config->publish($package, $path);
- }
- else
- {
- $this->config->publishPackage($package);
- }
-
- $this->output->writeln('<info>Configuration published for package:</info> '.$package);
- }
-
- /**
- * Get the specified path to the files.
- *
- * @return string
- */
- protected function getPath()
- {
- $path = $this->input->getOption('path');
-
- if ( ! is_null($path))
- {
- return $this->laravel['path.base'].'/'.$path;
- }
- }
-
- /**
- * Get the console command arguments.
- *
- * @return array
- */
- protected function getArguments()
- {
- return array(
- array('package', InputArgument::REQUIRED, 'The name of the package being published.'),
- );
- }
-
- /**
- * Get the console command options.
- *
- * @return array
- */
- protected function getOptions()
- {
- return array(
- array('path', null, InputOption::VALUE_OPTIONAL, 'The path to the configuration files.', null),
-
- array('force', null, InputOption::VALUE_NONE, 'Force the operation to run when the file already exists.'),
- );
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php
deleted file mode 100755
index 50e1a36..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/DownCommand.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-
-class DownCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'down';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Put the application into maintenance mode";
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- touch($this->laravel['config']['app.manifest'].'/down');
-
- $this->comment('Application is now in maintenance mode.');
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/EnvironmentCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/EnvironmentCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/EnvironmentCommand.php
deleted file mode 100755
index 5a12976..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/EnvironmentCommand.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-
-class EnvironmentCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'env';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Display the current framework environment";
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- $this->line('<info>Current application environment:</info> <comment>'.$this->laravel['env'].'</comment>');
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php
deleted file mode 100755
index 50a6b8e..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php
+++ /dev/null
@@ -1,80 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Support\Str;
-use Illuminate\Console\Command;
-use Illuminate\Filesystem\Filesystem;
-
-class KeyGenerateCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'key:generate';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Set the application key";
-
- /**
- * Create a new key generator command.
- *
- * @param \Illuminate\Filesystem\Filesystem $files
- * @return void
- */
- public function __construct(Filesystem $files)
- {
- parent::__construct();
-
- $this->files = $files;
- }
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- list($path, $contents) = $this->getKeyFile();
-
- $key = $this->getRandomKey();
-
- $contents = str_replace($this->laravel['config']['app.key'], $key, $contents);
-
- $this->files->put($path, $contents);
-
- $this->laravel['config']['app.key'] = $key;
-
- $this->info("Application key [$key] set successfully.");
- }
-
- /**
- * Get the key file and contents.
- *
- * @return array
- */
- protected function getKeyFile()
- {
- $env = $this->option('env') ? $this->option('env').'/' : '';
-
- $contents = $this->files->get($path = $this->laravel['path']."/config/{$env}app.php");
-
- return array($path, $contents);
- }
-
- /**
- * Generate a random key for the application.
- *
- * @return string
- */
- protected function getRandomKey()
- {
- return Str::random(32);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/MigratePublishCommand.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/MigratePublishCommand.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/MigratePublishCommand.php
deleted file mode 100644
index a7deca9..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/MigratePublishCommand.php
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php namespace Illuminate\Foundation\Console;
-
-use Illuminate\Console\Command;
-use Symfony\Component\Console\Input\InputArgument;
-
-class MigratePublishCommand extends Command {
-
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'migrate:publish';
-
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = "Publish a package's migrations to the application";
-
- /**
- * Execute the console command.
- *
- * @return void
- */
- public function fire()
- {
- $published = $this->laravel['migration.publisher']->publish(
- $this->getSourcePath(), $this->laravel['path'].'/database/migrations'
- );
-
- foreach ($published as $migration)
- {
- $this->line('<info>Published:</info> '.basename($migration));
- }
- }
-
- /**
- * Get the path to the source files.
- *
- * @return string
- */
- protected function getSourcePath()
- {
- $vendor = $this->laravel['path.base'].'/vendor';
-
- return $vendor.'/'.$this->argument('package').'/src/migrations';
- }
-
- /**
- * Get the console command arguments.
- *
- * @return array
- */
- protected function getArguments()
- {
- return array(
- array('package', InputArgument::REQUIRED, 'The name of the package being published.'),
- );
- }
-
-}
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/80fd786e/vendor/laravel/framework/src/Illuminate/Foundation/Console/Optimize/config.php
----------------------------------------------------------------------
diff --git a/vendor/laravel/framework/src/Illuminate/Foundation/Console/Optimize/config.php b/vendor/laravel/framework/src/Illuminate/Foundation/Console/Optimize/config.php
deleted file mode 100755
index 5e41b36..0000000
--- a/vendor/laravel/framework/src/Illuminate/Foundation/Console/Optimize/config.php
+++ /dev/null
@@ -1,120 +0,0 @@
-<?php
-
-$basePath = $app['path.base'];
-
-return array_map('realpath', array(
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/ClassLoader.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Container/Container.php',
- $basePath.'/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernelInterface.php',
- $basePath.'/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/TerminableInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Contracts/ResponsePreparerInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/Application.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/EnvironmentDetector.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Http/Request.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ParameterBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/FileBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ServerBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/HeaderBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/SessionInterface.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/SessionBagInterface.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBagInterface.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Attribute/AttributeBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/MetadataBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/AcceptHeaderItem.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/AcceptHeader.php',
- $basePath.'/vendor/symfony/debug/Symfony/Component/Debug/ExceptionHandler.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Exception/ExceptionServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Events/EventServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Traits/MacroableTrait.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Arr.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Str.php',
- $basePath.'/vendor/symfony/debug/Symfony/Component/Debug/ErrorHandler.php',
- $basePath.'/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ErrorHandler.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/Repository.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/NamespacedItemResolver.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/FileLoader.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/LoaderInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/EnvironmentVariablesLoaderInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/FileEnvironmentVariablesLoader.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Config/EnvironmentVariables.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Cookie/CookieServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Session/SessionServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/ViewServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/RouteFiltererInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Router.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Route.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Matching/ValidatorInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Matching/HostValidator.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Matching/MethodValidator.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Matching/SchemeValidator.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Routing/Matching/UriValidator.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Workbench/WorkbenchServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Contracts/ArrayableInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Contracts/JsonableInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Database/ConnectionResolverInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Session/SessionInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Session/Middleware.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Session/Store.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Session/SessionManager.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Manager.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Cookie/CookieJar.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/Log.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Log/LogServiceProvider.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Log/Writer.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Logger.php',
- $basePath.'/vendor/psr/log/Psr/Log/LoggerInterface.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php',
- $basePath.'/vendor/monolog/monolog/src/Monolog/Handler/HandlerInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/App.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Exception/ExceptionDisplayerInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Exception/SymfonyDisplayer.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Exception/WhoopsDisplayer.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Exception/Handler.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/Route.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/Engines/EngineResolver.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/ViewFinderInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/Environment.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Contracts/MessageProviderInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/MessageBag.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Facades/View.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Support/Contracts/RenderableInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/View.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/Engines/EngineInterface.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Http/ResponseTrait.php',
- $basePath.'/vendor/laravel/framework/src/Illuminate/Http/Response.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ResponseHeaderBag.php',
- $basePath.'/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Cookie.php',
- $basePath.'/vendor/filp/whoops/src/Whoops/Run.php',
- $basePath.'/vendor/filp/whoops/src/Whoops/Handler/HandlerInterface.php',
- $basePath.'/vendor/filp/whoops/src/Whoops/Handler/Handler.php',
- $basePath.'/vendor/filp/whoops/src/Whoops/Handler/JsonResponseHandler.php',
- $basePath.'/vendor/stack/builder/src/Stack/Builder.php',
- $basePath.'/vendor/stack/builder/src/Stack/StackedHttpKernel.php',
-));