Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
f0c27377
Commit
f0c27377
authored
Feb 02, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved directory function into github provider since it doesnt belong in base provider.
parent
b989594c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
19 deletions
+20
-19
laravel/cli/tasks/bundle/providers/github.php
+20
-0
laravel/cli/tasks/bundle/providers/provider.php
+0
-19
No files found.
laravel/cli/tasks/bundle/providers/github.php
View file @
f0c27377
...
...
@@ -55,4 +55,23 @@ class Github extends Provider {
passthru
(
'git submodule update'
);
}
/**
* Create the path to the bundle's dirname.
*
* @param array $bundle
* @return void
*/
protected
function
directory
(
$bundle
)
{
// If the installation target directory doesn't exist, we will create
// it recursively so that we can properly install the bundle to the
// correct path in the application.
$target
=
dirname
(
path
(
'bundle'
)
.
$this
->
path
(
$bundle
));
if
(
!
is_dir
(
$target
))
{
mkdir
(
$target
,
0777
,
true
);
}
}
}
\ No newline at end of file
laravel/cli/tasks/bundle/providers/provider.php
View file @
f0c27377
...
...
@@ -51,25 +51,6 @@ abstract class Provider {
}
/**
* Create the path to the bundle's dirname.
*
* @param array $bundle
* @return void
*/
protected
function
directory
(
$bundle
)
{
// If the installation target directory doesn't exist, we will create
// it recursively so that we can properly install the bundle to the
// correct path in the application.
$target
=
dirname
(
path
(
'bundle'
)
.
$this
->
path
(
$bundle
));
if
(
!
is_dir
(
$target
))
{
mkdir
(
$target
,
0777
,
true
);
}
}
/**
* Return the path for a given bundle.
*
* @param array $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