[BUGFIX] PackageManager initialize() signature is incompatible

PackageManagerInterface contains following method declaration::

 public function initialize(\TYPO3\Flow\Core\Bootstrap $bootstrap);

however in the PackageManager the signature is::

  public function initialize(\TYPO3\Flow\Core\Bootstrap $bootstrap,
    $packagesBasePath = FLOW_PATH_PACKAGES,
    $packageStatesPathAndFilename = '')

This will create a fatal error on some versions of php and when running
unit tests on hhvm (of CMS), see
http://php.net/manual/en/language.oop5.interfaces.php:

"The class implementing the interface must use the exact same method
signatures as are defined in the interface. Not doing so will result
in a fatal error."

This change updates the method signature of the PackageManager to be in
line with the interface.

Change-Id: I94cf40fb788861f2e4c9e656bea57a0ff2354113
Fixes: #56409
Releases: master, 2.1
[BUGFIX] Do not serialize singleton properties on __sleep

Serializing a Flow managed object will not serialize injected
properties as they will be reinjected anyway. This now works
consistently for all injections.

This also is a workaround for the PHP bug:
https://bugs.php.net/bug.php?id=65967

As the only reason we serialize an SplObjectStorage curently is
that we serialize Logger instances.

Change-Id: I1ad1a13610cedbff09ffaf3cd3a385b851c0d625
Releases: master, 2.1
[BUFGIX] Throw exception if PackageStates.php is not writeable

Change-Id: I6dbe4f52bb13bfeb893a88c0e235a1cdcf2cf441
Fixes: #53238
Releases: master, 2.1
[TASK] Clarify documentation for AOP method() and class()

Add some hints regarding matching on interfaces.

Releases: master, 2.1
Change-Id: Icfe4adc361de71ee4b22b353d914756f4d6ea2a6
[BUGFIX] SlaveRequestHandler must not ignore QUIT command

The ``SlaveRequestHandler`` listens for a "QUIT\n" command but
it trims the input first, removing the newline character.

Change-Id: I9b8813575b3c1b6c5d99e2ec0045442a7745b69f
Releases: master, 2.2, 2.1
[BUGFIX] Prevent invocation of protected controller methods

Currently any method with an "Action" suffix is callable via the
default request handling if a corresponding route exists.

For the fallback routes provided by Flow this is the case for the
``initialize*Action()`` methods that are called before the actual
action invocation.

This change adds a check for the visibility of an action method
and only allows invocation of public methods.

Change-Id: I076a56118b5fad112adf0dba0dee7b4711cfe903
Fixes: #57410
Releases: master, 2.2, 2.1
Merge "[TASK] Clarify documentation for AOP method() and class()" into 2.1
Merge "[BUGFIX] PackageManager initialize() signature is incompatible" into 2.1
Merge "[BUGFIX] Prevent invocation of protected controller methods" into 2.1
Merge "[BUFGIX] Throw exception if PackageStates.php is not writeable" into 2.1
[TASK] Fix intermittent failure in SessionTest unit test

By injecting a system logger mock, the test for GC that would fail at
random should now run reliably.

Along this the test tweaks the code (style) a bit.

Change-Id: Id0f42d4da127e0b715b19781c957b7d15a56d054
Releases: master, 2.1
Merge "[BUGFIX] Do not serialize singleton properties on __sleep" into 2.1
Merge "[TASK] Fix intermittent failure in SessionTest unit test" into 2.1
[TASK] Update references in documentation

See https://ci.neos.typo3.org/job/typo3-flow-release/16/

Releases: 2.1
[TASK] Add changelog for TYPO3 Flow 2.1.2

See https://ci.neos.typo3.org/job/typo3-flow-release/16/

Releases: 2.1
[TASK] Fix navigation menus in documentation

Change-Id: Id653d997b15fc6e6b152b2922eee2d3fe8b670eb
Releases: master, 2.2, 2.1, 2.0
[TASK] Fix documentation version

Sets the version of this documentation to "2.1.2" to match the released
version.

Change-Id: Iac9a8e173945de6c70322848b3a64139f7c55277
Releases: 2.1
[BUGFIX] TestingToken must not rely on a session

This changes the ``TestingToken`` to implement the
``SessionLessTokenInterface`` so that it doesn't rely on a session
to be started whenever it is authenticated.

This is required in order to make use of the token for CLI based
tests (e.g. from behat).
The change also removes the TestingProviderTest that were actually
outdated and only worked by accident.

Change-Id: Id5b8a64b07214dd562eb12b4c06a770ca1fae266
Releases: master, 2.2, 2.1
[FEATURE] Add method getPackageByClassName to PackageManager

Currently there is only a method to fetch the package of a given object.
This change adds a new method ``PackageManager::getPackageByClassName()`` that
resolves the package of a given class name.

Change-Id: Ic99d0ed5db8cdefc47063d1508dfa76f3131a6ac
Resolves: #50118
Releases: master, 2.1
[BUGFIX] SplitSources break on glob errors

When using SplitSource a glob call is used to fetch all
configuration files. This can return FALSE on error and on some
systems also on no result which was not correctly catched.

Change-Id: I5276e783048fb361c0d109d6c99821735b1f68a2
Releases: master, 2.2, 2.1