added bundle:refresh command to cli.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use Laravel\IoC;
|
||||
use Laravel\File;
|
||||
use Laravel\Cache;
|
||||
use Laravel\Bundle;
|
||||
use Laravel\CLI\Tasks\Task;
|
||||
|
||||
@@ -55,6 +56,8 @@ class Bundler extends Task {
|
||||
|
||||
echo "Bundle [{$bundle['name']}] has been installed!".PHP_EOL;
|
||||
}
|
||||
|
||||
$this->refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,6 +105,8 @@ class Bundler extends Task {
|
||||
|
||||
echo "Bundle [{$name}] has been upgraded!".PHP_EOL;
|
||||
}
|
||||
|
||||
$this->refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -125,6 +130,16 @@ class Bundler extends Task {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear the bundle manifest cache.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function refresh()
|
||||
{
|
||||
Cache::forget(Bundle::manifest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gather all of the bundles from the bundle repository.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user