Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Trac2Gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stud.IP
Plugins
Trac2Gitlab
Commits
a2d1feb8
Commit
a2d1feb8
authored
4 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
fixes
#67
parent
d5f7a6af
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap-definitions.php
+1
-1
1 addition, 1 deletion
bootstrap-definitions.php
lib/GitlabController.php
+1
-1
1 addition, 1 deletion
lib/GitlabController.php
lib/Plugin.php
+8
-9
8 additions, 9 deletions
lib/Plugin.php
with
10 additions
and
11 deletions
bootstrap-definitions.php
+
1
−
1
View file @
a2d1feb8
This diff is collapsed.
Click to expand it.
lib/GitlabController.php
+
1
−
1
View file @
a2d1feb8
...
@@ -22,7 +22,7 @@ abstract class GitlabController extends Controller
...
@@ -22,7 +22,7 @@ abstract class GitlabController extends Controller
$this
->
setCache
(
StudipCacheFactory
::
getCache
(),
'gitlab/'
);
$this
->
setCache
(
StudipCacheFactory
::
getCache
(),
'gitlab/'
);
$this
->
gitlab_project_id
=
Config
::
get
()
->
getValue
(
'TRAC2GITLAB_GITLAB_PROJECT_ID'
);
$this
->
gitlab_project_id
=
Config
::
get
()
->
getValue
(
'TRAC2GITLAB_GITLAB_PROJECT_ID'
);
$this
->
gitlab
=
app
(
Client
::
class
);
$this
->
gitlab
=
app
(
)
->
get
(
Client
::
class
);
}
}
protected
function
fetchAll
(
AbstractApi
$api
,
string
$method
,
array
$parameters
=
[]):
array
protected
function
fetchAll
(
AbstractApi
$api
,
string
$method
,
array
$parameters
=
[]):
array
...
...
This diff is collapsed.
Click to expand it.
lib/Plugin.php
+
8
−
9
View file @
a2d1feb8
...
@@ -9,17 +9,16 @@ abstract class Plugin extends StudIPPlugin
...
@@ -9,17 +9,16 @@ abstract class Plugin extends StudIPPlugin
{
{
protected
function
setupDiContainer
()
protected
function
setupDiContainer
()
{
{
$builder
=
new
DI\ContainerBuilder
();
$container
=
DIContainer
::
getInstance
();
$builder
->
useAutowiring
(
false
);
$builder
->
addDefinitions
(
__DIR__
.
'/../bootstrap-definitions.php'
);
$container
=
$builder
->
build
();
$combinedContainer
=
new
CombinedContainer
(
$definitions
=
require
__DIR__
.
'/../bootstrap-definitions.php'
;
$container
,
DIContainer
::
getInstance
()
);
DIContainer
::
setInstance
(
$combinedContainer
);
foreach
(
$definitions
as
$name
=>
$value
)
{
if
(
$value
instanceof
\Closure
)
{
$value
=
$value
(
$container
);
}
$container
->
set
(
$name
,
$value
);
}
}
}
public
function
perform
(
$unconsumed_path
)
public
function
perform
(
$unconsumed_path
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment