Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
die_coolen_jungs
our_own_cloud_project
Commits
c06a94ec
Commit
c06a94ec
authored
10 years ago
by
Lukas Reschke
Browse files
Options
Downloads
Patches
Plain Diff
Fix some PHPDocs
parent
f693d439
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
lib/private/appframework/utility/simplecontainer.php
+4
-3
4 additions, 3 deletions
lib/private/appframework/utility/simplecontainer.php
with
4 additions
and
3 deletions
lib/private/appframework/utility/simplecontainer.php
+
4
−
3
View file @
c06a94ec
...
@@ -33,8 +33,8 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
...
@@ -33,8 +33,8 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
/**
/**
* @param ReflectionClass $class the class to instantiate
* @param
\
ReflectionClass $class the class to instantiate
* @return stdClass the created class
* @return
\
stdClass the created class
*/
*/
private
function
buildClass
(
\ReflectionClass
$class
)
{
private
function
buildClass
(
\ReflectionClass
$class
)
{
$constructor
=
$class
->
getConstructor
();
$constructor
=
$class
->
getConstructor
();
...
@@ -63,6 +63,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
...
@@ -63,6 +63,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
* If a parameter is not registered in the container try to instantiate it
* If a parameter is not registered in the container try to instantiate it
* by using reflection to find out how to build the class
* by using reflection to find out how to build the class
* @param string $name the class name to resolve
* @param string $name the class name to resolve
* @return \stdClass
* @throws QueryException if the class could not be found or instantiated
* @throws QueryException if the class could not be found or instantiated
*/
*/
private
function
resolve
(
$name
)
{
private
function
resolve
(
$name
)
{
...
@@ -84,7 +85,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
...
@@ -84,7 +85,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
/**
/**
* @param string $name name of the service to query for
* @param string $name name of the service to query for
* @return mixed registered service for the given $name
* @return mixed registered service for the given $name
* @throws QueryExc
p
etion if the query could not be resolved
* @throws QueryExce
p
tion if the query could not be resolved
*/
*/
public
function
query
(
$name
)
{
public
function
query
(
$name
)
{
if
(
$this
->
offsetExists
(
$name
))
{
if
(
$this
->
offsetExists
(
$name
))
{
...
...
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