Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zimbra
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
Container registry
Model registry
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
zimbra
Commits
78faa3dc
Commit
78faa3dc
authored
11 years ago
by
Laurent Lecluse
Browse files
Options
Downloads
Patches
Plain Diff
Suppression d'une classe inutile
parent
e0fd5210
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/ModulesTest/ServiceManagerGrabber.php
+0
-29
0 additions, 29 deletions
tests/ModulesTest/ServiceManagerGrabber.php
with
0 additions
and
29 deletions
tests/ModulesTest/ServiceManagerGrabber.php
deleted
100644 → 0
+
0
−
29
View file @
e0fd5210
<?php
namespace
ModulesTests
;
use
Zend\ServiceManager\ServiceManager
;
use
Zend\Mvc\Service\ServiceManagerConfig
;
class
ServiceManagerGrabber
{
protected
static
$serviceConfig
=
null
;
public
static
function
setServiceConfig
(
$config
)
{
static
::
$serviceConfig
=
$config
;
}
public
function
getServiceManager
()
{
$configuration
=
static
::
$serviceConfig
?
:
require_once
'./config/application.config.php'
;
$smConfig
=
isset
(
$configuration
[
'service_manager'
])
?
$configuration
[
'service_manager'
]
:
array
();
$serviceManager
=
new
ServiceManager
(
new
ServiceManagerConfig
(
$smConfig
));
$serviceManager
->
setService
(
'ApplicationConfig'
,
$configuration
);
$serviceManager
->
get
(
'ModuleManager'
)
->
loadModules
();
return
$serviceManager
;
}
}
\ No newline at end of file
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