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
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
github.php
laravel/cli/tasks/bundle/providers/github.php
+19
-0
provider.php
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
...
...
@@ -50,25 +50,6 @@ abstract class Provider {
@
unlink
(
$target
);
}
/**
* 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.
*
...
...
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