]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix visibility of public API methods
authorJoas Schilling <nickvergessen@owncloud.com>
Mon, 20 Apr 2015 10:52:40 +0000 (12:52 +0200)
committerJoas Schilling <nickvergessen@owncloud.com>
Mon, 20 Apr 2015 10:52:40 +0000 (12:52 +0200)
lib/private/appframework/http/request.php
lib/private/appframework/utility/simplecontainer.php
lib/private/avatarmanager.php

index 002c1151adcf91bf5daa3b874433b9a52cea7c1b..8176622e3e64fc30f5a2f9ca6bbbb68a3ac5fcd2 100644 (file)
@@ -360,7 +360,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
         * @param string $key the key that will be taken from the $_COOKIE array
         * @return array the value in the $_COOKIE element
         */
-       function getCookie($key) {
+       public function getCookie($key) {
                return isset($this->cookies[$key]) ? $this->cookies[$key] : null;
        }
 
index 9e80f89e4587b0d2146b6cfd75bfb957adddf249..c7dff6f45719421e1b72ef13767ef6465d68de1e 100644 (file)
@@ -106,7 +106,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
         * @param string $name
         * @param mixed $value
         */
-       function registerParameter($name, $value) {
+       public function registerParameter($name, $value) {
                $this[$name] = $value;
        }
 
@@ -119,7 +119,7 @@ class SimpleContainer extends \Pimple\Container implements \OCP\IContainer {
         * @param \Closure $closure the closure to be called on service creation
         * @param bool $shared
         */
-       function registerService($name, \Closure $closure, $shared = true) {
+       public function registerService($name, \Closure $closure, $shared = true) {
                if (isset($this[$name]))  {
                        unset($this[$name]);
                }
index 578ab05d49b39564613f081f46963a831a0c6ee0..0ff4a3444e24aa18c90828f5d1b1a4b4b1ff2bad 100644 (file)
@@ -38,7 +38,7 @@ class AvatarManager implements IAvatarManager {
         * @param string $user the ownCloud user id
         * @return \OCP\IAvatar
         */
-       function getAvatar($user) {
+       public function getAvatar($user) {
                return new Avatar($user);
        }
 }