Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
bf4f464f
Commit
bf4f464f
authored
Feb 08, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added bundle:refresh command to cli.
parent
a0379ea4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
bundle.php
laravel/bundle.php
+7
-0
bundler.php
laravel/cli/tasks/bundle/bundler.php
+15
-0
core.php
laravel/core.php
+1
-1
No files found.
laravel/bundle.php
View file @
bf4f464f
...
@@ -32,6 +32,13 @@ class Bundle {
...
@@ -32,6 +32,13 @@ class Bundle {
*/
*/
public
static
$routed
=
array
();
public
static
$routed
=
array
();
/**
* The cache key for the bundle manifest.
*
* @var string
*/
const
manifest
=
'laravel.bundle.manifest'
;
/**
/**
* Detect all of the installed bundles from disk.
* Detect all of the installed bundles from disk.
*
*
...
...
laravel/cli/tasks/bundle/bundler.php
View file @
bf4f464f
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
use
Laravel\IoC
;
use
Laravel\IoC
;
use
Laravel\File
;
use
Laravel\File
;
use
Laravel\Cache
;
use
Laravel\Bundle
;
use
Laravel\Bundle
;
use
Laravel\CLI\Tasks\Task
;
use
Laravel\CLI\Tasks\Task
;
...
@@ -55,6 +56,8 @@ class Bundler extends Task {
...
@@ -55,6 +56,8 @@ class Bundler extends Task {
echo
"Bundle [
{
$bundle
[
'name'
]
}
] has been installed!"
.
PHP_EOL
;
echo
"Bundle [
{
$bundle
[
'name'
]
}
] has been installed!"
.
PHP_EOL
;
}
}
$this
->
refresh
();
}
}
/**
/**
...
@@ -102,6 +105,8 @@ class Bundler extends Task {
...
@@ -102,6 +105,8 @@ class Bundler extends Task {
echo
"Bundle [
{
$name
}
] has been upgraded!"
.
PHP_EOL
;
echo
"Bundle [
{
$name
}
] has been upgraded!"
.
PHP_EOL
;
}
}
$this
->
refresh
();
}
}
/**
/**
...
@@ -125,6 +130,16 @@ class Bundler extends Task {
...
@@ -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.
* Gather all of the bundles from the bundle repository.
*
*
...
...
laravel/core.php
View file @
bf4f464f
...
@@ -51,7 +51,7 @@ Autoloader::namespaces(array('Laravel' => path('sys')));
...
@@ -51,7 +51,7 @@ Autoloader::namespaces(array('Laravel' => path('sys')));
* each of them. If it's not cached, we'll detect them and then
* each of them. If it's not cached, we'll detect them and then
* cache it to save time later.
* cache it to save time later.
*/
*/
$bundles
=
Cache
::
remember
(
'laravel.bundle.manifest'
,
function
()
$bundles
=
Cache
::
remember
(
Bundle
::
manifest
,
function
()
{
{
return
Bundle
::
detect
(
path
(
'bundle'
));
return
Bundle
::
detect
(
path
(
'bundle'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment