Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
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
Björn Fischer
z-push
Commits
6ff84eeb
Commit
6ff84eeb
authored
Nov 30, 2017
by
Karl Denninger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1284 Composer update. Released under the Affero GNU General Public License (AGPL) version 3.
parent
fd1c4a66
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
16 deletions
+50
-16
autoload.php
src/vendor/autoload.php
+1
-1
ClassLoader.php
src/vendor/composer/ClassLoader.php
+45
-13
LICENSE
src/vendor/composer/LICENSE
+1
-1
autoload_classmap.php
src/vendor/composer/autoload_classmap.php
+1
-0
autoload_real.php
src/vendor/composer/autoload_real.php
+1
-1
autoload_static.php
src/vendor/composer/autoload_static.php
+1
-0
No files found.
src/vendor/autoload.php
View file @
6ff84eeb
...
...
@@ -2,6 +2,6 @@
// autoload.php @generated by Composer
require_once
__DIR__
.
'/composer
'
.
'
/autoload_real.php'
;
require_once
__DIR__
.
'/composer/autoload_real.php'
;
return
ComposerAutoloaderInitd6749fc2fb9944bbe86b2b7d79a7852f
::
getLoader
();
src/vendor/composer/ClassLoader.php
View file @
6ff84eeb
...
...
@@ -53,8 +53,9 @@ class ClassLoader
private
$useIncludePath
=
false
;
private
$classMap
=
array
();
private
$classMapAuthoritative
=
false
;
private
$missingClasses
=
array
();
private
$apcuPrefix
;
public
function
getPrefixes
()
{
...
...
@@ -271,6 +272,26 @@ class ClassLoader
return
$this
->
classMapAuthoritative
;
}
/**
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*/
public
function
setApcuPrefix
(
$apcuPrefix
)
{
$this
->
apcuPrefix
=
function_exists
(
'apcu_fetch'
)
&&
ini_get
(
'apc.enabled'
)
?
$apcuPrefix
:
null
;
}
/**
* The APCu prefix in use, or null if APCu caching is not enabled.
*
* @return string|null
*/
public
function
getApcuPrefix
()
{
return
$this
->
apcuPrefix
;
}
/**
* Registers this instance as an autoloader.
*
...
...
@@ -313,29 +334,34 @@ class ClassLoader
*/
public
function
findFile
(
$class
)
{
// work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
if
(
'\\'
==
$class
[
0
])
{
$class
=
substr
(
$class
,
1
);
}
// class map lookup
if
(
isset
(
$this
->
classMap
[
$class
]))
{
return
$this
->
classMap
[
$class
];
}
if
(
$this
->
classMapAuthoritative
)
{
if
(
$this
->
classMapAuthoritative
||
isset
(
$this
->
missingClasses
[
$class
])
)
{
return
false
;
}
if
(
null
!==
$this
->
apcuPrefix
)
{
$file
=
apcu_fetch
(
$this
->
apcuPrefix
.
$class
,
$hit
);
if
(
$hit
)
{
return
$file
;
}
}
$file
=
$this
->
findFileWithExtension
(
$class
,
'.php'
);
// Search for Hack files if we are running on HHVM
if
(
$file
===
null
&&
defined
(
'HHVM_VERSION'
))
{
if
(
false
===
$file
&&
defined
(
'HHVM_VERSION'
))
{
$file
=
$this
->
findFileWithExtension
(
$class
,
'.hh'
);
}
if
(
$file
===
null
)
{
if
(
null
!==
$this
->
apcuPrefix
)
{
apcu_add
(
$this
->
apcuPrefix
.
$class
,
$file
);
}
if
(
false
===
$file
)
{
// Remember that this class does not exist.
return
$this
->
classMap
[
$class
]
=
fals
e
;
$this
->
missingClasses
[
$class
]
=
tru
e
;
}
return
$file
;
...
...
@@ -348,9 +374,13 @@ class ClassLoader
$first
=
$class
[
0
];
if
(
isset
(
$this
->
prefixLengthsPsr4
[
$first
]))
{
foreach
(
$this
->
prefixLengthsPsr4
[
$first
]
as
$prefix
=>
$length
)
{
if
(
0
===
strpos
(
$class
,
$prefix
))
{
foreach
(
$this
->
prefixDirsPsr4
[
$prefix
]
as
$dir
)
{
$subPath
=
$class
;
while
(
false
!==
$lastPos
=
strrpos
(
$subPath
,
'\\'
))
{
$subPath
=
substr
(
$subPath
,
0
,
$lastPos
);
$search
=
$subPath
.
'\\'
;
if
(
isset
(
$this
->
prefixDirsPsr4
[
$search
]))
{
foreach
(
$this
->
prefixDirsPsr4
[
$search
]
as
$dir
)
{
$length
=
$this
->
prefixLengthsPsr4
[
$first
][
$search
];
if
(
file_exists
(
$file
=
$dir
.
DIRECTORY_SEPARATOR
.
substr
(
$logicalPathPsr4
,
$length
)))
{
return
$file
;
}
...
...
@@ -399,6 +429,8 @@ class ClassLoader
if
(
$this
->
useIncludePath
&&
$file
=
stream_resolve_include_path
(
$logicalPathPsr0
))
{
return
$file
;
}
return
false
;
}
}
...
...
src/vendor/composer/LICENSE
View file @
6ff84eeb
Copyright (c)
2016
Nils Adermann, Jordi Boggiano
Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
src/vendor/composer/autoload_classmap.php
View file @
6ff84eeb
...
...
@@ -29,6 +29,7 @@ return array(
'BackendLDAP'
=>
$baseDir
.
'/backend/ldap/ldap.php'
,
'BackendMaildir'
=>
$baseDir
.
'/backend/maildir/maildir.php'
,
'BackendSearchLDAP'
=>
$baseDir
.
'/backend/searchldap/searchldap.php'
,
'BackendStickyNote'
=>
$baseDir
.
'/backend/stickynote/stickynote.php'
,
'BackendVCardDir'
=>
$baseDir
.
'/backend/vcarddir/vcarddir.php'
,
'BackendZarafa'
=>
$baseDir
.
'/backend/kopano/kopano.php'
,
'BaseException'
=>
$baseDir
.
'/backend/kopano/mapi/class.baseexception.php'
,
...
...
src/vendor/composer/autoload_real.php
View file @
6ff84eeb
...
...
@@ -23,7 +23,7 @@ class ComposerAutoloaderInitd6749fc2fb9944bbe86b2b7d79a7852f
self
::
$loader
=
$loader
=
new
\Composer\Autoload\ClassLoader
();
spl_autoload_unregister
(
array
(
'ComposerAutoloaderInitd6749fc2fb9944bbe86b2b7d79a7852f'
,
'loadClassLoader'
));
$useStaticLoader
=
PHP_VERSION_ID
>=
50600
&&
!
defined
(
'HHVM_VERSION'
);
$useStaticLoader
=
PHP_VERSION_ID
>=
50600
&&
!
defined
(
'HHVM_VERSION'
)
&&
(
!
function_exists
(
'zend_loader_file_encoded'
)
||
!
zend_loader_file_encoded
())
;
if
(
$useStaticLoader
)
{
require_once
__DIR__
.
'/autoload_static.php'
;
...
...
src/vendor/composer/autoload_static.php
View file @
6ff84eeb
...
...
@@ -36,6 +36,7 @@ class ComposerStaticInitd6749fc2fb9944bbe86b2b7d79a7852f
'BackendLDAP'
=>
__DIR__
.
'/../..'
.
'/backend/ldap/ldap.php'
,
'BackendMaildir'
=>
__DIR__
.
'/../..'
.
'/backend/maildir/maildir.php'
,
'BackendSearchLDAP'
=>
__DIR__
.
'/../..'
.
'/backend/searchldap/searchldap.php'
,
'BackendStickyNote'
=>
__DIR__
.
'/../..'
.
'/backend/stickynote/stickynote.php'
,
'BackendVCardDir'
=>
__DIR__
.
'/../..'
.
'/backend/vcarddir/vcarddir.php'
,
'BackendZarafa'
=>
__DIR__
.
'/../..'
.
'/backend/kopano/kopano.php'
,
'BaseException'
=>
__DIR__
.
'/../..'
.
'/backend/kopano/mapi/class.baseexception.php'
,
...
...
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