first commit
This commit is contained in:
7
administrator/components/com_jchoptimize/lib/vendor/autoload.php
vendored
Normal file
7
administrator/components/com_jchoptimize/lib/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
require_once __DIR__.'/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitc9c410f933e0df798c52abcbe3ffb58d::getLoader();
|
||||
674
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/LICENSE
vendored
Normal file
674
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/LICENSE
vendored
Normal file
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
1
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/index.html
vendored
Normal file
1
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
||||
53
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Base.php
vendored
Normal file
53
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Base.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\Minify;
|
||||
|
||||
abstract class Base
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Base;
|
||||
|
||||
protected function __construct()
|
||||
{
|
||||
if (!\defined('CODEALFA_MINIFY_CONFIGURED')) {
|
||||
\ini_set('pcre.backtrack_limit', '1000000');
|
||||
\ini_set('pcre.recursion_limit', '1000000');
|
||||
\ini_set('pcre.jit', '0');
|
||||
\define('CODEALFA_MINIFY_CONFIGURED', 1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @staticvar bool $tm
|
||||
*
|
||||
* @param mixed $regexNum
|
||||
*
|
||||
* @psalm-param callable(array<array-key, string>): string $callback
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected function _replace(string $regex, string $replacement, string $code, $regexNum, ?callable $callback = null): string
|
||||
{
|
||||
static $tm = \false;
|
||||
if (\false === $tm) {
|
||||
$this->_debug('', '');
|
||||
$tm = \true;
|
||||
}
|
||||
if (empty($callback)) {
|
||||
$op_code = \preg_replace($regex, $replacement, $code);
|
||||
} else {
|
||||
$op_code = \preg_replace_callback($regex, $callback, $code);
|
||||
}
|
||||
$this->_debug($regex, $code, $regexNum);
|
||||
self::throwExceptionOnPregError();
|
||||
|
||||
return $op_code;
|
||||
}
|
||||
}
|
||||
77
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Css.php
vendored
Normal file
77
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Css.php
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\Minify;
|
||||
|
||||
class Css extends \CodeAlfa\Minify\Base
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Css;
|
||||
public string $css;
|
||||
|
||||
private function __construct(string $css)
|
||||
{
|
||||
$this->css = $css;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* Minify a CSS string.
|
||||
*/
|
||||
public static function optimize(string $css): string
|
||||
{
|
||||
$obj = new \CodeAlfa\Minify\Css($css);
|
||||
|
||||
try {
|
||||
return $obj->_optimize();
|
||||
} catch (\Exception $e) {
|
||||
return $obj->css;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Minify a CSS string.
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function _optimize(): string
|
||||
{
|
||||
$s1 = self::doubleQuoteStringToken();
|
||||
$s2 = self::singleQuoteStringToken();
|
||||
$es = $s1.'|'.$s2;
|
||||
$s = '(?<!\\\\)(?:'.$es.')|[\'"]';
|
||||
$u = self::cssUrlWithCaptureValueToken();
|
||||
$e = '(?<!\\\\)(?:'.$es.'|'.$u.')|[\'"(]';
|
||||
$b = self::blockCommentToken();
|
||||
// $c = self::LINE_COMMENT();
|
||||
// Remove all comments
|
||||
$rx = "#(?>/?[^/\"'(]*+(?:{$e})?)*?\\K(?>{$b}|\$)#s";
|
||||
$this->css = $this->_replace($rx, '', $this->css, 'css1');
|
||||
// remove ws around , ; : { } in CSS Declarations and media queries
|
||||
$rx = "#(?>(?:[{};]|^)[^{}@;]*+{|(?:(?<![,;:{}])\\s++(?![,;:{}]))?[^\\s{};\"'(]*+(?:{$e}|[{};])?)+?\\K".'(?:\\s++(?=[,;:{}])|(?<=[,;:{}])\\s++|\\K$)#s';
|
||||
$this->css = $this->_replace($rx, '', $this->css, 'css2');
|
||||
// remove ws around , + > ~ { } in selectors
|
||||
$rx = "#(?>(?:(?<![,+>~{}])\\s++(?![,+>~{}]))?[^\\s{\"'(]*+(?:{[^{}]++}|{|{$e})?)*?\\K".'(?:\\s++(?=[,+>~{}])|(?<=[,+>~{};])\\s++|$\\K)#s';
|
||||
$this->css = $this->_replace($rx, '', $this->css, 'css3');
|
||||
// remove last ; in block
|
||||
$rx = "#(?>(?:;(?!}))?[^;\"'(]*+(?:{$e})?)*?\\K(?:;(?=})|\$\\K)#s";
|
||||
$this->css = $this->_replace($rx, '', $this->css, 'css4');
|
||||
// remove ws inside urls
|
||||
$rx = "#(?>\\(?[^\"'(]*+(?:{$s})?)*?(?:(?<=\\burl)\\(\\K\\s++|\\G(?(?=[\"'])['\"][^'\"]++['\"]|[^\\s]++)\\K\\s++(?=\\))|\$\\K)#s";
|
||||
$this->css = $this->_replace($rx, '', $this->css, 'css5');
|
||||
// minimize hex colors
|
||||
$rx = "#(?>\\#?[^\\#\"'(]*+(?:{$e})?)*?(?:(?<!=)\\#\\K".'([a-f\\d])\\g{1}([a-f\\d])\\g{2}([a-f\\d])\\g{3}(?=[\\s;}])|$\\K)#is';
|
||||
$this->css = $this->_replace($rx, '$1$2$3', $this->css, 'css6');
|
||||
// reduce remaining ws to single space
|
||||
$rx = "#(?>[^\\s'\"(]*+(?:{$e}|\\s(?!\\s))?)*?\\K(?:\\s\\s++|\$)#s";
|
||||
$this->css = $this->_replace($rx, ' ', $this->css, 'css7');
|
||||
|
||||
return \trim($this->css);
|
||||
}
|
||||
}
|
||||
182
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Html.php
vendored
Normal file
182
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Html.php
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\Minify;
|
||||
|
||||
class Html extends \CodeAlfa\Minify\Base
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Html;
|
||||
public string $html = '';
|
||||
|
||||
/**
|
||||
* @psalm-var array{isXhtml: bool, isHtml5: bool, jsMinifier: callable|null, minifyLevel: int, jsonMinifier: callable|null, cssMinifier: callable|null}
|
||||
*/
|
||||
protected array $options;
|
||||
|
||||
/**
|
||||
* @psalm-param array{isXhtml?: bool, isHtml5?: bool, jsMinifier?: callable, jsonMinifier?: callable, cssMinifier?: callable, minifyLevel?: int}|null $options
|
||||
*/
|
||||
protected function __construct(string $html, $options)
|
||||
{
|
||||
$this->html = $html;
|
||||
$paramOptions = ['isXhtml' => \false, 'isHtml5' => \false, 'minifyLevel' => 0, 'cssMinifier' => null, 'jsMinifier' => null, 'jsonMinifier' => null];
|
||||
if ($options) {
|
||||
$paramOptions = \array_merge($paramOptions, $options);
|
||||
}
|
||||
$this->options = $paramOptions;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public static function cleanScript(string $content, string $type): string
|
||||
{
|
||||
$s1 = self::doubleQuoteStringToken();
|
||||
$s2 = self::singleQuoteStringToken();
|
||||
$b = self::blockCommentToken();
|
||||
$l = self::lineCommentToken();
|
||||
$c = self::htmlCommentToken();
|
||||
if ('css' == $type) {
|
||||
return \preg_replace("#(?>[<\\]\\-]?[^'\"<\\]\\-/]*+(?>{$s1}|{$s2}|{$b}|{$l}|/)?)*?\\K(?:{$c}|\$)#i", '', $content);
|
||||
}
|
||||
|
||||
return \CodeAlfa\Minify\Js::optimize($content, ['prepareOnly' => \true]);
|
||||
}
|
||||
|
||||
/**
|
||||
* "Minify" an HTML page.
|
||||
*
|
||||
* @psalm-param array{isXhtml?: bool, isHtml5?: bool, jsMinifier?: callable, jsonMinifier?: callable, cssMinifier?: callable, minifyLevel?: int}|null $options
|
||||
*/
|
||||
public static function optimize(string $html, $options = null): string
|
||||
{
|
||||
$min = new \CodeAlfa\Minify\Html($html, $options);
|
||||
|
||||
try {
|
||||
return $min->_optimize();
|
||||
} catch (\Exception $e) {
|
||||
return $min->html;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $m
|
||||
*/
|
||||
protected function _minifyCB(array $m): string
|
||||
{
|
||||
if ('' == $m[0]) {
|
||||
return $m[0];
|
||||
}
|
||||
if (\false !== \strpos($m[0], 'var google_conversion')) {
|
||||
return $m[0];
|
||||
}
|
||||
$openTag = isset($m[1]) && '' != $m[1] ? $m[1] : (isset($m[4]) && '' != $m[4] ? $m[4] : '');
|
||||
$content = isset($m[2]) && '' != $m[2] ? $m[2] : (isset($m[5]) && '' != $m[5] ? $m[5] : '');
|
||||
$closeTag = isset($m[3]) && '' != $m[3] ? $m[3] : (isset($m[6]) && '' != $m[6] ? $m[6] : '');
|
||||
if ('' == \trim($content)) {
|
||||
return $m[0];
|
||||
}
|
||||
$type = 1 == \stripos($openTag, 'script') ? \false !== \stripos($openTag, 'json') ? 'json' : 'js' : 'css';
|
||||
if (\is_callable($this->options[$type.'Minifier'])) {
|
||||
// minify
|
||||
/** @psalm-suppress PossiblyNullArgument $content */
|
||||
$content = $this->_callMinifier($this->options[$type.'Minifier'], $content);
|
||||
|
||||
return $this->_needsCdata($content, $type) ? "{$openTag}/*<![CDATA[*/{$content}/*]]>*/{$closeTag}" : "{$openTag}{$content}{$closeTag}";
|
||||
}
|
||||
|
||||
return $m[0];
|
||||
}
|
||||
|
||||
protected function _callMinifier(callable $minifier, string $content): string
|
||||
{
|
||||
return (string) \call_user_func($minifier, $content);
|
||||
}
|
||||
|
||||
protected function _needsCdata(string $str, string $type): bool
|
||||
{
|
||||
return $this->options['isXhtml'] && 'js' == $type && \preg_match('#(?:[<&]|\\-\\-|\\]\\]>)#', $str);
|
||||
}
|
||||
|
||||
/**
|
||||
* Minify the markup given in the constructor.
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function _optimize(): string
|
||||
{
|
||||
$x = self::htmlCommentToken();
|
||||
$s1 = self::doubleQuoteStringToken();
|
||||
$s2 = self::singleQuoteStringToken();
|
||||
$a = self::htmlAttributeWithCaptureValueToken();
|
||||
// Regex for escape elements
|
||||
$pr = self::htmlElementToken('pre');
|
||||
$sc = self::htmlElementToken('script');
|
||||
$st = self::htmlElementToken('style');
|
||||
$tx = self::htmlElementToken('textarea');
|
||||
if ($this->options['minifyLevel'] > 0) {
|
||||
// Remove comments (not containing IE conditional comments)
|
||||
$rx = "#(?><?[^<]*+(?>{$pr}|{$sc}|{$st}|{$tx}|<!--\\[(?><?[^<]*+)*?<!\\s*\\[(?>-?[^-]*+)*?--!?>|<!DOCTYPE[^>]++>)?)*?\\K(?:{$x}|\$)#i";
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html1');
|
||||
}
|
||||
// Reduce runs of whitespace outside all elements to one
|
||||
$rx = "#(?>[^<]*+(?:{$pr}|{$sc}|{$st}|{$tx}|{$x}|<(?>[^>=]*+(?:=\\s*+(?:{$s1}|{$s2}|['\"])?|(?=>)))*?>)?)*?\\K".'(?:[\\t\\f ]++(?=[\\r\\n]\\s*+<)|(?>\\r?\\n|\\r)\\K\\s++(?=<)|[\\t\\f]++(?=[ ]\\s*+<)|[\\t\\f]\\K\\s*+(?=<)|[ ]\\K\\s*+(?=<)|$)#i';
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html2');
|
||||
// Minify scripts
|
||||
// invalid scripts
|
||||
$nsc = "<script\\b(?=(?>\\s*+{$a})*?\\s*+type\\s*+=\\s*+(?![\"']?(?:text|application)/(?:javascript|[^'\"\\s>]*?json)))[^<>]*+>(?><?[^<]*+)*?</\\s*+script\\s*+>";
|
||||
// invalid styles
|
||||
$nst = "<style\\b(?=(?>\\s*+{$a})*?\\s*+type\\s*+=\\s*+(?![\"']?(?:text|(?:css|stylesheet))))[^<>]*+>(?><?[^<]*+)*?</\\s*+style\\s*>";
|
||||
$rx = "#(?><?[^<]*+(?:{$x}|{$nsc}|{$nst})?)*?\\K(?:(<script\\b(?!(?>\\s*+{$a})*?\\s*+type\\s*+=\\s*+(?![\"']?(?:text|application)/(?:javascript|[^'\"\\s>]*?json)))[^<>]*+>)((?><?[^<]*+)*?)(</\\s*+script\\s*+>)|(<style\\b(?!(?>\\s*+{$a})*?\\s*+type\\s*+=\\s*+(?![\"']?text/(?:css|stylesheet)))[^<>]*+>)((?><?[^<]*+)*?)(</\\s*+style\\s*+>)|\$)#i";
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html3', [$this, '_minifyCB']);
|
||||
if ($this->options['minifyLevel'] < 1) {
|
||||
return \trim($this->html);
|
||||
}
|
||||
// Replace line feed with space (legacy)
|
||||
$rx = "#(?>[^<]*+(?:{$pr}|{$sc}|{$st}|{$tx}|{$x}|<(?>[^>=]*+(?:=\\s*+(?:{$s1}|{$s2}|['\"])?|(?=>)))*?>)?)*?\\K".'(?:[\\r\\n\\t\\f]++(?=<)|$)#i';
|
||||
$this->html = $this->_replace($rx, ' ', $this->html, 'html4');
|
||||
// remove ws around block elements preserving space around inline elements
|
||||
// block/undisplayed elements
|
||||
$b = 'address|article|aside|audio|body|blockquote|canvas|dd|div|dl|fieldset|figcaption|figure|footer|form|h[1-6]|head|header|hgroup|html|noscript|ol|output|p|pre|section|style|table|title|tfoot|ul|video';
|
||||
// self closing block/undisplayed elements
|
||||
$b2 = 'base|meta|link|hr';
|
||||
// inline elements
|
||||
$i = 'b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|map|object|q|script|span|sub|sup|button|label|select|textarea';
|
||||
// self closing inline elements
|
||||
$i2 = 'img|input';
|
||||
$rx = "#(?>\\s*+(?:{$pr}|{$sc}|{$st}|{$tx}|{$x}|<(?:(?>{$i})\\b[^>]*+>|(?:/(?>{$i})\\b>|(?>{$i2})\\b[^>]*+>)\\s*+)|<[^>]*+>)|[^<]++)*?\\K(?:\\s++(?=<(?>{$b}|{$b2})\\b)|(?:</(?>{$b})\\b>|<(?>{$b2})\\b[^>]*+>)\\K\\s++(?!<(?>{$i}|{$i2})\\b)|\$)#i";
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html5');
|
||||
// Replace runs of whitespace inside elements with single space escaping pre, textarea, scripts and style elements
|
||||
// elements to escape
|
||||
$e = 'pre|script|style|textarea';
|
||||
$rx = "#(?>[^<]*+(?:{$pr}|{$sc}|{$st}|{$tx}|{$x}|<[^>]++>[^<]*+))*?(?:(?:<(?!{$e}|!)[^>]*+>)?(?>\\s?[^\\s<]*+)*?\\K\\s{2,}|\\K\$)#i";
|
||||
$this->html = $this->_replace($rx, ' ', $this->html, 'html6');
|
||||
// Remove additional ws around attributes
|
||||
$rx = "#(?>\\s?(?>[^<>]*+(?:<!(?!DOCTYPE)(?>>?[^>]*+)*?>[^<>]*+)?<|(?=[^<>]++>)[^\\s>'\"]++(?>{$s1}|{$s2})?|[^<]*+))*?\\K".'(?>\\s\\s++|$)#i';
|
||||
$this->html = $this->_replace($rx, ' ', $this->html, 'html7');
|
||||
if ($this->options['minifyLevel'] < 2) {
|
||||
return \trim($this->html);
|
||||
}
|
||||
// remove redundant attributes
|
||||
$rx = "#(?:(?=[^<>]++>)|(?><?[^<]*+(?>{$x}|{$nsc}|{$nst}|<(?!(?:script|style|link)|/html>))?)*?".'<(?:(?:script|style|link)|/html>))(?>[ ]?[^ >]*+)*?\\K(?: (?:type|language)=["\']?(?:(?:text|application)/(?:javascript|css)|javascript)["\']?|[^<]*+\\K$)#i';
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html8');
|
||||
$j = '<input type="hidden" name="[0-9a-f]{32}" value="1" />';
|
||||
// Remove quotes from selected attributes
|
||||
if ($this->options['isHtml5']) {
|
||||
$ns1 = '"[^"\'`=<>\\s]*+(?:[\'`=<>\\s]|(?<=\\\\)")(?>(?:(?<=\\\\)")?[^"]*+)*?(?<!\\\\)"';
|
||||
$ns2 = "'[^'\"`=<>\\s]*+(?:[\"`=<>\\s]|(?<=\\\\)')(?>(?:(?<=\\\\)')?[^']*+)*?(?<!\\\\)'";
|
||||
$rx = '#(?:(?=[^>]*+>)|<[a-z0-9]++ )'."(?>[=]?[^=><]*+(?:=(?:{$ns1}|{$ns2})|>(?>[^<]*+(?:{$j}|{$x}|{$nsc}|{$nst}|<(?![a-z0-9]++ ))?)*?(?:<[a-z0-9]++ |\$))?)*?(?:=\\K([\"'])([^\"'`=<>\\s]++)\\g{1}[ ]?|\\K\$)#i";
|
||||
$this->html = $this->_replace($rx, '$2 ', $this->html, 'html9');
|
||||
}
|
||||
// Remove last whitespace in open tag
|
||||
$rx = "#(?>[^<]*+(?:{$j}|{$x}|{$nsc}|{$nst}|<(?![a-z0-9]++))?)*?(?:<[a-z0-9]++(?>\\s*+[^\\s>]++)*?\\K(?:\\s*+(?=>)|(?<=[\"'])\\s++(?=/>))|\$\\K)#i";
|
||||
$this->html = $this->_replace($rx, '', $this->html, 'html10');
|
||||
|
||||
return \trim($this->html);
|
||||
}
|
||||
}
|
||||
198
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Js.php
vendored
Normal file
198
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Js.php
vendored
Normal file
@@ -0,0 +1,198 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This is a regular expressions based implementation of the JSMin algorithim in PHP as described
|
||||
* on Douglas Crockford's page at http://www.crockford.com/javascript/jsmin.html and also
|
||||
* guided by the PHP port written by Ryan Grove <ryan@wonko.com>.
|
||||
*
|
||||
* This was written to provide a PHP tool to minify javascript but with an emphasis on speed,
|
||||
* in particular for tools that want to minify javascript on the fly such as http://www.jch-optimize.net.
|
||||
* Based on independent comparison tests, this library consistently returns the same results as JSMin.php
|
||||
* but on an average of 200 times faster.
|
||||
*
|
||||
* Permission is hereby granted to use this version of the library under the
|
||||
* same terms as jsmin.c, which has the following license:
|
||||
*
|
||||
* --
|
||||
* Copyright (c) 2002 Douglas Crockford (www.crockford.com)
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
* of the Software, and to permit persons to whom the Software is furnished to do
|
||||
* so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* The Software shall be used for Good, not Evil.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
* --
|
||||
*
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright (c) 2002, Douglas Crockford <douglas@crockford.com> (jsmin.c)
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, See LICENSE file
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\Minify;
|
||||
|
||||
class Js extends Base
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Js;
|
||||
|
||||
public string $js;
|
||||
protected bool $prepareOnly = false;
|
||||
|
||||
protected function __construct(string $js, bool $prepareOnly)
|
||||
{
|
||||
$this->js = $js;
|
||||
$this->prepareOnly = $prepareOnly;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-param array{prepareOnly?: bool} $options
|
||||
*/
|
||||
public static function optimize(string $js, array $options = []): string
|
||||
{
|
||||
$prepareOnly = $options['prepareOnly'] ?? false;
|
||||
|
||||
$oMinifyJs = new Js($js, $prepareOnly);
|
||||
|
||||
try {
|
||||
return $oMinifyJs->_optimize();
|
||||
} catch (\Exception $e) {
|
||||
return $oMinifyJs->js;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function _optimize(): string
|
||||
{
|
||||
// regex for double-quoted strings
|
||||
$s1 = self::doubleQuoteStringToken();
|
||||
|
||||
// regex for single quoted string
|
||||
$s2 = self::singleQuoteStringToken();
|
||||
|
||||
// regex for backtick quoted string
|
||||
$s3 = self::backTickStringToken();
|
||||
|
||||
// regex for block comments
|
||||
$b = self::blockCommentToken();
|
||||
|
||||
// regex for line comments
|
||||
$c = self::lineCommentToken();
|
||||
|
||||
// regex for HTML comments in scripts
|
||||
$h = self::jsHtmlCommentToken();
|
||||
|
||||
// We have to do some manipulating with regexp literals; Their pattern is a little 'irregular' but
|
||||
// they need to be escaped
|
||||
//
|
||||
// characters that can precede a regexp literal
|
||||
$x1 = '[(.<>%,=:[!&|?+\-~*{;\r\n^]';
|
||||
// keywords that can precede a regex literal
|
||||
$x2 = '\breturn|\bthrow|\btypeof|\bcase|\bdelete|\bdo|\belse|\bin|\binstanceof|\bnew|\bvoid';
|
||||
// actual regexp literal
|
||||
$x3 = '/(?![/*])(?>(?(?=\\\\)\\\\.|\[(?>(?:\\\\.)?[^\]\r\n]*+)+?\])?[^\\\\/\r\n\[]*+)+?/';
|
||||
// ambiguous characters
|
||||
$x4 = '[)}]';
|
||||
// methods and properties
|
||||
$x5 = 'compile|exec|test|toString|constructor|global|ignoreCase|lastIndex|multiline|source';
|
||||
|
||||
// regex for complete regexp literal
|
||||
$x = "(?>(?=/)(?<={$x1}|{$x2})(?<!\\+\\+|--){$x3}"
|
||||
."|(?=/)(?<={$x4}){$x3}(?=\\.(?>{$x5})))";
|
||||
|
||||
// control characters excluding \r, \
|
||||
$ws = '\x00-\x09\x0B\x0C\x0E-\x1F\x7F';
|
||||
|
||||
// Remove spaces before regexp literals
|
||||
$rx = "#(?>[{$ws} ]*+(?(?=[^'\"/`]*+(?<=[{$ws} ])/)[^'\"/`{$ws} ]*+(?(?=['\"/`])(?>{$s1}|{$s2}|{$s3}|{$b}|{$c}|{$x}|/)?)"
|
||||
."|[^'\"/`]*+(?>{$s1}|{$s2}|{$s3}|{$b}|{$c}|{$x}|/)?))*?\\K"
|
||||
."(?>(?=[{$ws} ]++/)(?:(?<={$x1}|{$x2})(?>[{$ws} ]++({$x3}))|(?<={$x4})(?>[{$ws} ]++({$x3}))(?=\\.(?>{$x5})))|$)#siS";
|
||||
$this->js = $this->_replace($rx, '$1$2', $this->js, 'js1');
|
||||
|
||||
// remove HTML comments
|
||||
// language=RegExp
|
||||
$r1 = "(?>[<\\]\\-]?[^'\"`<\\]\\-/]*+(?>{$s1}|{$s2}|{$s3}|{$b}|{$c}|{$x}|/)?)";
|
||||
$rx = "#{$r1}*?\\K(?>{$h}|$)#si";
|
||||
$this->js = $this->_replace($rx, '', $this->js, 'js1B');
|
||||
|
||||
if (true == $this->prepareOnly) {
|
||||
return $this->js;
|
||||
}
|
||||
|
||||
// replace line comments with line feed
|
||||
$rx = "#(?>[^'\"/`]*+(?>{$s1}|{$s2}|{$s3}|{$x}|{$b}|/(?![*/]))?)*?\\K(?>{$c}|$)#si";
|
||||
$this->js = $this->_replace($rx, "\n", $this->js, 'js2');
|
||||
|
||||
// replace block comments with single space
|
||||
$rx = "#(?>[^'\"/`]*+(?>{$s1}|{$s2}|{$s3}|{$x}|/(?![*/]))?)*?\\K(?>{$b}|$)#si";
|
||||
$this->js = $this->_replace($rx, ' ', $this->js, 'js3');
|
||||
|
||||
// convert carriage returns to line feeds
|
||||
$rx = "#(?>[^'\"`/\\r]*+(?>{$s1}|{$s2}|{$s3}|{$x}|/)?)*?\\K(?>\\r\\n?|$)#si";
|
||||
$this->js = $this->_replace($rx, "\n", $this->js, 'js4');
|
||||
|
||||
// convert all other control characters to space
|
||||
$rx = "#(?>[^'\"`/{$ws}]*+(?>{$s1}|{$s2}|{$s3}|{$x}|/)?)*?\\K(?>[{$ws}]++|$)#si";
|
||||
$this->js = $this->_replace($rx, ' ', $this->js, 'js5');
|
||||
|
||||
// replace runs of whitespace with single space or linefeed
|
||||
$rx = "#(?>[^'\"`/\\n ]*+(?>{$s1}|{$s2}|{$s3}|{$x}|[ \\n](?![ \\n])|/)?)*?\\K(?:[ ]++(?=\\n)|\\n\\K\\s++|[ ]\\K[ ]++|$)#si";
|
||||
$this->js = $this->_replace($rx, '', $this->js, 'js6');
|
||||
|
||||
// if regex literal ends line (without modifiers) insert semicolon
|
||||
$rx = "#(?>[/]?[^'\"`/]*+(?>{$s1}|{$s2}|{$s3}|{$x}(?!\\n))?)*?(?:{$x}\\K\\n(?![!\\#%&`*./,:;<=>?@\\^|~}\\])\"'])|\\K$)#si";
|
||||
$this->js = $this->_replace($rx, ';', $this->js, 'js7');
|
||||
|
||||
// clean up
|
||||
// $rx = '#.+\K;$#s';
|
||||
// $this->_js = $this->_replace($rx, '', $this->_js, '8');
|
||||
$this->js = substr($this->js, 0, -1);
|
||||
|
||||
// regex for removing spaces
|
||||
// remove space except when a space is preceded and followed by a non-ASCII character or by an ASCII letter or digit,
|
||||
// or by one of these characters \ $ _ ...ie., all ASCII characters except those listed.
|
||||
$c = '["\'!\#%&`()*./,:;<=>?@\[\]\^{}|~+\-]';
|
||||
$sp = "(?<={$c}) | (?={$c})";
|
||||
|
||||
// Non-ASCII characters
|
||||
$na = '[^\x00-\x7F]';
|
||||
|
||||
// spaces to keep
|
||||
$k1 = "(?<=[\$_a-z0-9\\\\]|{$na}) (?=[\$_a-z0-9\\\\]|{$na})|(?<=\\+) (?=\\+)|(?<=-) (?=-)";
|
||||
|
||||
// regex for removing linefeeds
|
||||
// remove linefeeds except if it precedes a non-ASCII character or an ASCII letter or digit or one of these
|
||||
// characters: ! \ $ _ [ ( { + - and if it follows a non-ASCII character or an ASCII letter or digit or one of these
|
||||
// characters: \ $ _ ] ) } + - " ' ` ...ie., all ASCII characters except those listed respectively
|
||||
// (or one of these characters: ) " ' ` followed by a string)
|
||||
$ln = '(?<=[!\#%&*./,:;<=>?@\^|~{\[(])\n|\n(?=[\#%&*./,:;<=>?@\^|~}\])])|(?<![\)"\'`])\\n(?=[\'"`])';
|
||||
|
||||
// line feeds to keep
|
||||
$k2 = "(?<=[\$_a-z0-9\\\\\\])}+\\-\"'`]|{$na})\\n(?=[!\$_a-z0-9\\\\\\[({+\\-]|{$na})|(?<=[\\)\"'`])\\n(?=[\"'`])";
|
||||
|
||||
// remove unnecessary linefeeds and spaces
|
||||
$rx = "#(?>[^'\"`/\\n ]*+(?>{$s1}|{$s2}|{$s3}|{$x}|/|{$k1}|{$k2})?)*?\\K(?>{$sp}|{$ln}|$)#si";
|
||||
$this->js = $this->_replace($rx, '', $this->js, 'js9');
|
||||
|
||||
$this->js = trim($this->js);
|
||||
|
||||
return $this->js;
|
||||
}
|
||||
}
|
||||
59
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Json.php
vendored
Normal file
59
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/Json.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\Minify;
|
||||
|
||||
class Json extends \CodeAlfa\Minify\Base
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Js;
|
||||
public string $json;
|
||||
|
||||
protected function __construct(string $json)
|
||||
{
|
||||
$this->json = $json;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public static function optimize(string $json): string
|
||||
{
|
||||
$obj = new \CodeAlfa\Minify\Json($json);
|
||||
|
||||
try {
|
||||
return $obj->_optimize();
|
||||
} catch (\Exception $e) {
|
||||
return $obj->json;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
*/
|
||||
private function _optimize(): string
|
||||
{
|
||||
// regex for double-quoted strings
|
||||
$s1 = self::doubleQuoteStringToken();
|
||||
// regex for single quoted string
|
||||
$s2 = self::singleQuoteStringToken();
|
||||
// regex for block comments
|
||||
$b = self::blockCommentToken();
|
||||
// regex for line comments
|
||||
$c = self::lineCommentToken();
|
||||
// regex for HTML comments
|
||||
$h = self::jsHtmlCommentToken();
|
||||
// remove all comments
|
||||
$rx = "#(?>[^/\"'<]*+(?:{$s1}|{$s2})?)*?\\K(?>{$b}|{$c}|{$h}|\$)#si";
|
||||
$this->json = $this->_replace($rx, '', $this->json, '1');
|
||||
// remove whitespaces around :,{}
|
||||
$rx = "#(?>[^\"'\\s]*+(?:{$s1}|{$s2})?)*?\\K(?>\\s++(?=[:,{}\\[\\]])|(?<=[:,{}\\[\\]])\\s++|\$)#s";
|
||||
$this->json = $this->_replace($rx, '', $this->json, '2');
|
||||
|
||||
return $this->json;
|
||||
}
|
||||
}
|
||||
3
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/index.html
vendored
Normal file
3
administrator/components/com_jchoptimize/lib/vendor/codealfa/minify/src/index.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html>
|
||||
<body style="background: #fff;"></body>
|
||||
</html>
|
||||
151
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Base.php
vendored
Normal file
151
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Base.php
vendored
Normal file
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\RegexTokenizer;
|
||||
|
||||
use CodeAlfa\RegexTokenizer\Debug\Debug;
|
||||
use Exception;
|
||||
|
||||
trait Base
|
||||
{
|
||||
use Debug;
|
||||
|
||||
/**
|
||||
* Regex token for a string inside double quotes.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function doubleQuoteStringToken(): string
|
||||
{
|
||||
return '"'.self::doubleQuoteStringValueToken().'(?:"|(?=$))';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for the value of a string inside double quotes.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function doubleQuoteStringValueToken(): string
|
||||
{
|
||||
return '(?<=")(?>(?:\\\\.)?[^\\\\"]*+)++';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for a string enclosed by single quotes.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function singleQuoteStringToken(): string
|
||||
{
|
||||
return "'".self::singleQuoteStringValueToken()."(?:'|(?=\$))";
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for the value of a string inside single quotes.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function singleQuoteStringValueToken(): string
|
||||
{
|
||||
return "(?<=')(?>(?:\\\\.)?[^\\\\']*+)++";
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for a string enclosed by back ticks.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function backTickStringToken(): string
|
||||
{
|
||||
return '`'.self::backTickStringValueToken().'(?:`|(?=$))';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for the value of a string inside back ticks.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function backTickStringValueToken(): string
|
||||
{
|
||||
return '(?<=`)(?>(?:\\\\.)?[^\\\\`]*+)++';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for any string, optionally capturing the value in a capture group.
|
||||
*
|
||||
* @param bool $shouldCaptureValue Whether value should be captured in a capture group
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function stringWithCaptureValueToken(bool $shouldCaptureValue = \false): string
|
||||
{
|
||||
$string = '[\'"`]<<'.self::stringValueToken().'>>[\'"`]';
|
||||
|
||||
return self::prepare($string, $shouldCaptureValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for the value of a string regardless of which quotes are used.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function stringValueToken(): string
|
||||
{
|
||||
return '(?:'.self::doubleQuoteStringValueToken().'|'.self::singleQuoteStringValueToken().'|'.self::backTickStringValueToken().')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for block or line comments.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function commentToken(): string
|
||||
{
|
||||
return '(?:'.self::blockCommentToken().'|'.self::lineCommentToken().')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for block comment.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function blockCommentToken(): string
|
||||
{
|
||||
return '/\\*(?>\\*?[^*]*+)*?\\*/';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for line comment.
|
||||
*/
|
||||
public static function lineCommentToken(): string
|
||||
{
|
||||
return '//[^\\r\\n]*+';
|
||||
}
|
||||
|
||||
/**
|
||||
* Will throw an exception when a PHP preg error is encountered.
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
protected static function throwExceptionOnPregError()
|
||||
{
|
||||
$error = \array_flip(\array_filter(\get_defined_constants(\true)['pcre'], function (string $value) {
|
||||
return '_ERROR' === \substr($value, -6);
|
||||
}, \ARRAY_FILTER_USE_KEY))[\preg_last_error()];
|
||||
if (\PREG_NO_ERROR != \preg_last_error()) {
|
||||
throw new \Exception($error);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $regex Regular expression string
|
||||
* @param bool $shouldCaptureValue Whether value should be captured
|
||||
*/
|
||||
// language=RegExp
|
||||
private static function prepare(string $regex, bool $shouldCaptureValue): string
|
||||
{
|
||||
$searchArray = ['<<<', '>>>', '<<', '>>'];
|
||||
if ($shouldCaptureValue) {
|
||||
return \str_replace($searchArray, ['(?|', ')', '(', ')'], $regex);
|
||||
}
|
||||
|
||||
return \str_replace($searchArray, ['(?:', ')', '', ''], $regex);
|
||||
}
|
||||
}
|
||||
56
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Css.php
vendored
Normal file
56
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Css.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\RegexTokenizer;
|
||||
|
||||
trait Css
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Base;
|
||||
|
||||
/**
|
||||
* Regex token for a CSS ident.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function cssIdentToken(): string
|
||||
{
|
||||
return '(?:\\\\.|[a-z0-9_-]++\\s++)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for a CSS url, optionally capturing the value in a capture group.
|
||||
*
|
||||
* @param bool $shouldCaptureValue Whether to capture the value in a capture group
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function cssUrlWithCaptureValueToken(bool $shouldCaptureValue = \false): string
|
||||
{
|
||||
$cssUrl = '(?:url\\(|(?<=url)\\()(?:\\s*+[\'"])?<<'.self::cssUrlValueToken().'>>(?:[\'"]\\s*+)?\\)';
|
||||
|
||||
return self::prepare($cssUrl, $shouldCaptureValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for a CSS url value.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function cssUrlValueToken(): string
|
||||
{
|
||||
return '(?:'.self::stringValueToken().'|'.self::cssUnquotedUrlValueToken().')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an unquoted CSS url value.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function cssUnquotedUrlValueToken(): string
|
||||
{
|
||||
return '(?<=url\\()(?>\\s*+(?:\\\\.)?[^\\\\()\\s\'"]*+)++';
|
||||
}
|
||||
}
|
||||
61
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Debug/Debug.php
vendored
Normal file
61
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Debug/Debug.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\RegexTokenizer\Debug;
|
||||
|
||||
use Psr\Log\LoggerAwareTrait;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\NullLogger;
|
||||
|
||||
/**
|
||||
* Trait Debug - To use the Debug trait you must add a PSR-3 compliant Logger to the class using this trait.
|
||||
*/
|
||||
trait Debug
|
||||
{
|
||||
use LoggerAwareTrait;
|
||||
// DO NOT ENABLE on production sites!!
|
||||
public $_debug = \false;
|
||||
public $_limit = 10.0;
|
||||
public $_printCode = \true;
|
||||
|
||||
/**
|
||||
* @param mixed $regexNum
|
||||
*/
|
||||
public function _debug(string $regex, string $code, $regexNum = 0): void
|
||||
{
|
||||
if (!$this->_debug) {
|
||||
return;
|
||||
}
|
||||
if (\is_null($this->logger)) {
|
||||
$this->setLogger(new NullLogger());
|
||||
}
|
||||
\assert($this->logger instanceof LoggerInterface);
|
||||
|
||||
/** @var float $pstamp */
|
||||
static $pstamp = 0.0;
|
||||
if (0.0 === $pstamp) {
|
||||
$pstamp = \microtime(\true);
|
||||
|
||||
return;
|
||||
}
|
||||
$nstamp = \microtime(\true);
|
||||
$time = ($nstamp - $pstamp) * 1000;
|
||||
if ($time > $this->_limit) {
|
||||
$context = ['category' => 'Regextokenizer'];
|
||||
$this->logger->debug('regexNum = '.(string) $regexNum, $context);
|
||||
$this->logger->debug('time = '.(string) $time, $context);
|
||||
if ($this->_printCode) {
|
||||
$this->logger->debug('regex = '.$regex, $context);
|
||||
$this->logger->debug('code = '.$code, $context);
|
||||
}
|
||||
}
|
||||
$pstamp = $nstamp;
|
||||
}
|
||||
}
|
||||
124
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Html.php
vendored
Normal file
124
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Html.php
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\RegexTokenizer;
|
||||
|
||||
trait Html
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Base;
|
||||
|
||||
/**
|
||||
* Regex token for a string.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlCommentToken(): string
|
||||
{
|
||||
return '<!--(?>-?[^-]*+)*?--!?>';
|
||||
// return '(?:(?:<!--|(?<=[\s/^])-->)[^\r\n]*+)';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an array of HTML elements.
|
||||
*
|
||||
* @param string[] $elements Array of names of HTML elements
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlElementsToken(array $elements): string
|
||||
{
|
||||
$result = [];
|
||||
foreach ($elements as $element) {
|
||||
$result[] = self::htmlElementToken($element);
|
||||
}
|
||||
|
||||
return '(?:'.\implode('|', $result).')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an HTML element.
|
||||
*
|
||||
* @param string $element Name of HTML element
|
||||
* @param bool $isSelfClosing Whether element is self-closing
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlElementToken(string $element = '', bool $isSelfClosing = \false): string
|
||||
{
|
||||
$name = '' != $element ? $element : self::htmlGenericElementToken();
|
||||
$tag = '<'.$name.'\\b(?:\\s++'.self::parseAttributesStatic().')?\\s*+>';
|
||||
if (!$isSelfClosing) {
|
||||
$tag .= '(?><?[^<]*+)*?</'.$name.'\\s*+>';
|
||||
}
|
||||
|
||||
return $tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for any valid HTML element name.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlGenericElementToken(): string
|
||||
{
|
||||
return '[a-z0-9]++';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an HTML attribute, optionally capturing the value in a capture group.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlAttributeWithCaptureValueToken(string $attrName = '', bool $captureValue = \false, bool $captureDelimiter = \false, string $matchedValue = ''): string
|
||||
{
|
||||
$name = '' != $attrName ? $attrName : '[^\\s/"\'=<>]++';
|
||||
$delimiter = $captureDelimiter ? '([\'"]?)' : '[\'"]?';
|
||||
// If we don't need to match a value then the value of attribute is optional
|
||||
if ('' == $matchedValue) {
|
||||
$attribute = $name.'(?:\\s*+=\\s*+(?>'.$delimiter.')<<'.self::htmlAttributeValueToken().'>>[\'"]?)?';
|
||||
} else {
|
||||
$attribute = $name.'\\s*+=\\s*+(?>'.$delimiter.')'.$matchedValue.'<<'.self::htmlAttributeValueToken().'>>[\'"]?';
|
||||
}
|
||||
|
||||
return self::prepare($attribute, $captureValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an HTML attribute value.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlAttributeValueToken(): string
|
||||
{
|
||||
return '(?:'.self::stringValueToken().'|'.self::htmlUnquotedAttributeValueToken().')';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for an unquoted HTML attribute value.
|
||||
*/
|
||||
// language=RegExp
|
||||
public static function htmlUnquotedAttributeValueToken(): string
|
||||
{
|
||||
return '(?<==)[^\\s*+>]++';
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex token for a self closing HTML element.
|
||||
*
|
||||
* @param string $element Name of element
|
||||
*/
|
||||
public static function htmlSelfClosingElementToken(string $element = ''): string
|
||||
{
|
||||
return self::htmlElementToken($element, \true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Regex for parsing an HTML attribute.
|
||||
*/
|
||||
// language=RegExp
|
||||
protected static function parseAttributesStatic(): string
|
||||
{
|
||||
return '(?>'.self::htmlAttributeWithCaptureValueToken().'\\s*+)*?';
|
||||
}
|
||||
}
|
||||
24
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Js.php
vendored
Normal file
24
administrator/components/com_jchoptimize/lib/vendor/codealfa/regextokenizer/src/Js.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @author Samuel Marshall <sdmarshall73@gmail.com>
|
||||
* @copyright Copyright (c) 2020 Samuel Marshall
|
||||
* @license GNU/GPLv3, or later. See LICENSE file
|
||||
*
|
||||
* If LICENSE file missing, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
namespace CodeAlfa\RegexTokenizer;
|
||||
|
||||
trait Js
|
||||
{
|
||||
use \CodeAlfa\RegexTokenizer\Base;
|
||||
|
||||
/**
|
||||
* Regex token for a valid HTML comment in a JavaScript declaration block.
|
||||
*/
|
||||
public static function jsHtmlCommentToken(): string
|
||||
{
|
||||
return '(?:(?:<!--|(?<=[\\s/^])-->)[^\\r\\n]*+)';
|
||||
}
|
||||
}
|
||||
485
administrator/components/com_jchoptimize/lib/vendor/composer/ClassLoader.php
vendored
Normal file
485
administrator/components/com_jchoptimize/lib/vendor/composer/ClassLoader.php
vendored
Normal file
@@ -0,0 +1,485 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
/**
|
||||
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
||||
*
|
||||
* $loader = new \Composer\Autoload\ClassLoader();
|
||||
*
|
||||
* // register classes with namespaces
|
||||
* $loader->add('Symfony\Component', __DIR__.'/component');
|
||||
* $loader->add('Symfony', __DIR__.'/framework');
|
||||
*
|
||||
* // activate the autoloader
|
||||
* $loader->register();
|
||||
*
|
||||
* // to enable searching the include path (eg. for PEAR packages)
|
||||
* $loader->setUseIncludePath(true);
|
||||
*
|
||||
* In this example, if you try to use a class in the Symfony\Component
|
||||
* namespace or one of its children (Symfony\Component\Console for instance),
|
||||
* the autoloader will first look for the class under the component/
|
||||
* directory, and it will then fallback to the framework/ directory if not
|
||||
* found before giving up.
|
||||
*
|
||||
* This class is loosely based on the Symfony UniversalClassLoader.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* @see https://www.php-fig.org/psr/psr-0/
|
||||
* @see https://www.php-fig.org/psr/psr-4/
|
||||
*/
|
||||
class ClassLoader
|
||||
{
|
||||
private $vendorDir;
|
||||
|
||||
// PSR-4
|
||||
private $prefixLengthsPsr4 = [];
|
||||
private $prefixDirsPsr4 = [];
|
||||
private $fallbackDirsPsr4 = [];
|
||||
|
||||
// PSR-0
|
||||
private $prefixesPsr0 = [];
|
||||
private $fallbackDirsPsr0 = [];
|
||||
|
||||
private $useIncludePath = false;
|
||||
private $classMap = [];
|
||||
private $classMapAuthoritative = false;
|
||||
private $missingClasses = [];
|
||||
private $apcuPrefix;
|
||||
|
||||
private static $registeredLoaders = [];
|
||||
|
||||
public function __construct($vendorDir = null)
|
||||
{
|
||||
$this->vendorDir = $vendorDir;
|
||||
}
|
||||
|
||||
public function getPrefixes()
|
||||
{
|
||||
if (!empty($this->prefixesPsr0)) {
|
||||
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
public function getPrefixesPsr4()
|
||||
{
|
||||
return $this->prefixDirsPsr4;
|
||||
}
|
||||
|
||||
public function getFallbackDirs()
|
||||
{
|
||||
return $this->fallbackDirsPsr0;
|
||||
}
|
||||
|
||||
public function getFallbackDirsPsr4()
|
||||
{
|
||||
return $this->fallbackDirsPsr4;
|
||||
}
|
||||
|
||||
public function getClassMap()
|
||||
{
|
||||
return $this->classMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $classMap Class to filename map
|
||||
*/
|
||||
public function addClassMap(array $classMap)
|
||||
{
|
||||
if ($this->classMap) {
|
||||
$this->classMap = array_merge($this->classMap, $classMap);
|
||||
} else {
|
||||
$this->classMap = $classMap;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix, either
|
||||
* appending or prepending to the ones previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param array|string $paths The PSR-0 root directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*/
|
||||
public function add($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr0
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr0 = array_merge(
|
||||
$this->fallbackDirsPsr0,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$first = $prefix[0];
|
||||
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
||||
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
|
||||
|
||||
return;
|
||||
}
|
||||
if ($prepend) {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixesPsr0[$first][$prefix]
|
||||
);
|
||||
} else {
|
||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
||||
$this->prefixesPsr0[$first][$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace, either
|
||||
* appending or prepending to the ones previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param array|string $paths The PSR-4 base directories
|
||||
* @param bool $prepend Whether to prepend the directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function addPsr4($prefix, $paths, $prepend = false)
|
||||
{
|
||||
if (!$prefix) {
|
||||
// Register directories for the root namespace.
|
||||
if ($prepend) {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
(array) $paths,
|
||||
$this->fallbackDirsPsr4
|
||||
);
|
||||
} else {
|
||||
$this->fallbackDirsPsr4 = array_merge(
|
||||
$this->fallbackDirsPsr4,
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
||||
// Register directories for a new namespace.
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException('A non-empty PSR-4 prefix must end with a namespace separator.');
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
} elseif ($prepend) {
|
||||
// Prepend directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
(array) $paths,
|
||||
$this->prefixDirsPsr4[$prefix]
|
||||
);
|
||||
} else {
|
||||
// Append directories for an already registered namespace.
|
||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
||||
$this->prefixDirsPsr4[$prefix],
|
||||
(array) $paths
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-0 directories for a given prefix,
|
||||
* replacing any others previously set for this prefix.
|
||||
*
|
||||
* @param string $prefix The prefix
|
||||
* @param array|string $paths The PSR-0 base directories
|
||||
*/
|
||||
public function set($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr0 = (array) $paths;
|
||||
} else {
|
||||
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a set of PSR-4 directories for a given namespace,
|
||||
* replacing any others previously set for this namespace.
|
||||
*
|
||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
||||
* @param array|string $paths The PSR-4 base directories
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function setPsr4($prefix, $paths)
|
||||
{
|
||||
if (!$prefix) {
|
||||
$this->fallbackDirsPsr4 = (array) $paths;
|
||||
} else {
|
||||
$length = strlen($prefix);
|
||||
if ('\\' !== $prefix[$length - 1]) {
|
||||
throw new \InvalidArgumentException('A non-empty PSR-4 prefix must end with a namespace separator.');
|
||||
}
|
||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns on searching the include path for class files.
|
||||
*
|
||||
* @param bool $useIncludePath
|
||||
*/
|
||||
public function setUseIncludePath($useIncludePath)
|
||||
{
|
||||
$this->useIncludePath = $useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can be used to check if the autoloader uses the include path to check
|
||||
* for classes.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getUseIncludePath()
|
||||
{
|
||||
return $this->useIncludePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* Turns off searching the prefix and fallback directories for classes
|
||||
* that have not been registered with the class map.
|
||||
*
|
||||
* @param bool $classMapAuthoritative
|
||||
*/
|
||||
public function setClassMapAuthoritative($classMapAuthoritative)
|
||||
{
|
||||
$this->classMapAuthoritative = $classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should class lookup fail if not found in the current class map?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isClassMapAuthoritative()
|
||||
{
|
||||
return $this->classMapAuthoritative;
|
||||
}
|
||||
|
||||
/**
|
||||
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
||||
*
|
||||
* @param null|string $apcuPrefix
|
||||
*/
|
||||
public function setApcuPrefix($apcuPrefix)
|
||||
{
|
||||
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* The APCu prefix in use, or null if APCu caching is not enabled.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getApcuPrefix()
|
||||
{
|
||||
return $this->apcuPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers this instance as an autoloader.
|
||||
*
|
||||
* @param bool $prepend Whether to prepend the autoloader or not
|
||||
*/
|
||||
public function register($prepend = false)
|
||||
{
|
||||
spl_autoload_register([$this, 'loadClass'], true, $prepend);
|
||||
|
||||
if (null === $this->vendorDir) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($prepend) {
|
||||
self::$registeredLoaders = [$this->vendorDir => $this] + self::$registeredLoaders;
|
||||
} else {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
self::$registeredLoaders[$this->vendorDir] = $this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unregisters this instance as an autoloader.
|
||||
*/
|
||||
public function unregister()
|
||||
{
|
||||
spl_autoload_unregister([$this, 'loadClass']);
|
||||
|
||||
if (null !== $this->vendorDir) {
|
||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the given class or interface.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
*
|
||||
* @return null|true True if loaded, null otherwise
|
||||
*/
|
||||
public function loadClass($class)
|
||||
{
|
||||
if ($file = $this->findFile($class)) {
|
||||
includeFile($file);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the path to the file where the class is defined.
|
||||
*
|
||||
* @param string $class The name of the class
|
||||
*
|
||||
* @return false|string The path if found, false otherwise
|
||||
*/
|
||||
public function findFile($class)
|
||||
{
|
||||
// class map lookup
|
||||
if (isset($this->classMap[$class])) {
|
||||
return $this->classMap[$class];
|
||||
}
|
||||
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 (false === $file && defined('HHVM_VERSION')) {
|
||||
$file = $this->findFileWithExtension($class, '.hh');
|
||||
}
|
||||
|
||||
if (null !== $this->apcuPrefix) {
|
||||
apcu_add($this->apcuPrefix.$class, $file);
|
||||
}
|
||||
|
||||
if (false === $file) {
|
||||
// Remember that this class does not exist.
|
||||
$this->missingClasses[$class] = true;
|
||||
}
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the currently registered loaders indexed by their corresponding vendor directories.
|
||||
*
|
||||
* @return self[]
|
||||
*/
|
||||
public static function getRegisteredLoaders()
|
||||
{
|
||||
return self::$registeredLoaders;
|
||||
}
|
||||
|
||||
private function findFileWithExtension($class, $ext)
|
||||
{
|
||||
// PSR-4 lookup
|
||||
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
|
||||
|
||||
$first = $class[0];
|
||||
if (isset($this->prefixLengthsPsr4[$first])) {
|
||||
$subPath = $class;
|
||||
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
||||
$subPath = substr($subPath, 0, $lastPos);
|
||||
$search = $subPath.'\\';
|
||||
if (isset($this->prefixDirsPsr4[$search])) {
|
||||
$pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
|
||||
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
||||
if (file_exists($file = $dir.$pathEnd)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-4 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr4 as $dir) {
|
||||
if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 lookup
|
||||
if (false !== $pos = strrpos($class, '\\')) {
|
||||
// namespaced class name
|
||||
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
||||
.strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
||||
} else {
|
||||
// PEAR-like class name
|
||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
|
||||
}
|
||||
|
||||
if (isset($this->prefixesPsr0[$first])) {
|
||||
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
||||
if (0 === strpos($class, $prefix)) {
|
||||
foreach ($dirs as $dir) {
|
||||
if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 fallback dirs
|
||||
foreach ($this->fallbackDirsPsr0 as $dir) {
|
||||
if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
}
|
||||
|
||||
// PSR-0 include paths.
|
||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
||||
return $file;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Scope isolated include.
|
||||
*
|
||||
* Prevents access to $this/self from included files.
|
||||
*
|
||||
* @param mixed $file
|
||||
*/
|
||||
function includeFile($file)
|
||||
{
|
||||
include $file;
|
||||
}
|
||||
341
administrator/components/com_jchoptimize/lib/vendor/composer/InstalledVersions.php
vendored
Normal file
341
administrator/components/com_jchoptimize/lib/vendor/composer/InstalledVersions.php
vendored
Normal file
@@ -0,0 +1,341 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Composer.
|
||||
*
|
||||
* (c) Nils Adermann <naderman@naderman.de>
|
||||
* Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace _JchOptimizeVendor\Composer;
|
||||
|
||||
use _JchOptimizeVendor\Composer\Autoload\ClassLoader;
|
||||
use _JchOptimizeVendor\Composer\Semver\VersionParser;
|
||||
|
||||
/**
|
||||
* This class is copied in every Composer installed project and available to all.
|
||||
*
|
||||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||
*
|
||||
* To require it's presence, you can require `composer-runtime-api ^2.0`
|
||||
*/
|
||||
class InstalledVersions
|
||||
{
|
||||
private static $installed;
|
||||
private static $canGetVendors;
|
||||
private static $installedByVendor = [];
|
||||
|
||||
/**
|
||||
* Returns a list of all package names which are present, either by being installed, replaced or provided.
|
||||
*
|
||||
* @return string[]
|
||||
*
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackages()
|
||||
{
|
||||
$packages = [];
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
$packages[] = \array_keys($installed['versions']);
|
||||
}
|
||||
if (1 === \count($packages)) {
|
||||
return $packages[0];
|
||||
}
|
||||
|
||||
return \array_keys(\array_flip(\call_user_func_array('array_merge', $packages)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all package names with a specific type e.g. 'library'.
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
* @return string[]
|
||||
*
|
||||
* @psalm-return list<string>
|
||||
*/
|
||||
public static function getInstalledPackagesByType($type)
|
||||
{
|
||||
$packagesByType = [];
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
foreach ($installed['versions'] as $name => $package) {
|
||||
if (isset($package['type']) && $package['type'] === $type) {
|
||||
$packagesByType[] = $name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $packagesByType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package is installed.
|
||||
*
|
||||
* This also returns true if the package name is provided or replaced by another package
|
||||
*
|
||||
* @param string $packageName
|
||||
* @param bool $includeDevRequirements
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isInstalled($packageName, $includeDevRequirements = \true)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (isset($installed['versions'][$packageName])) {
|
||||
return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
|
||||
}
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the given package satisfies a version constraint.
|
||||
*
|
||||
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
||||
*
|
||||
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
||||
*
|
||||
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
||||
* @param string $packageName
|
||||
* @param null|string $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
||||
{
|
||||
$constraint = $parser->parseConstraints($constraint);
|
||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
||||
|
||||
return $provided->matches($constraint);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a version constraint representing all the range(s) which are installed for a given package.
|
||||
*
|
||||
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
||||
* whether a given version of a package is installed, and not just whether it exists
|
||||
*
|
||||
* @param string $packageName
|
||||
*
|
||||
* @return string Version constraint usable with composer/semver
|
||||
*/
|
||||
public static function getVersionRanges($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
$ranges = [];
|
||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
if (\array_key_exists('aliases', $installed['versions'][$packageName])) {
|
||||
$ranges = \array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
||||
}
|
||||
if (\array_key_exists('replaced', $installed['versions'][$packageName])) {
|
||||
$ranges = \array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
||||
}
|
||||
if (\array_key_exists('provided', $installed['versions'][$packageName])) {
|
||||
$ranges = \array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
||||
}
|
||||
|
||||
return \implode(' || ', $ranges);
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
*
|
||||
* @return null|string If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
*
|
||||
* @return null|string If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
||||
*/
|
||||
public static function getPrettyVersion($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['pretty_version'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
*
|
||||
* @return null|string If the package is being replaced or provided but is not really installed, null will be returned as reference
|
||||
*/
|
||||
public static function getReference($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $installed['versions'][$packageName]['reference'];
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $packageName
|
||||
*
|
||||
* @return null|string If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
||||
*/
|
||||
public static function getInstallPath($packageName)
|
||||
{
|
||||
foreach (self::getInstalled() as $installed) {
|
||||
if (!isset($installed['versions'][$packageName])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
||||
}
|
||||
|
||||
throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
|
||||
*/
|
||||
public static function getRootPackage()
|
||||
{
|
||||
$installed = self::getInstalled();
|
||||
|
||||
return $installed[0]['root'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw installed.php data for custom implementations.
|
||||
*
|
||||
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
||||
*
|
||||
* @return array[]
|
||||
*
|
||||
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}
|
||||
*/
|
||||
public static function getRawData()
|
||||
{
|
||||
@\trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', \E_USER_DEPRECATED);
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if ('C' !== \substr(__DIR__, -8, 1)) {
|
||||
self::$installed = (include __DIR__.'/installed.php');
|
||||
} else {
|
||||
self::$installed = [];
|
||||
}
|
||||
}
|
||||
|
||||
return self::$installed;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the raw data of all installed.php which are currently loaded for custom implementations.
|
||||
*
|
||||
* @return array[]
|
||||
*
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
||||
*/
|
||||
public static function getAllRawData()
|
||||
{
|
||||
return self::getInstalled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Lets you reload the static array from another file.
|
||||
*
|
||||
* This is only useful for complex integrations in which a project needs to use
|
||||
* this class but then also needs to execute another project's autoloader in process,
|
||||
* and wants to ensure both projects have access to their version of installed.php.
|
||||
*
|
||||
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
||||
* the data it needs from this class, then call reload() with
|
||||
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
||||
* the project in which it runs can then also use this class safely, without
|
||||
* interference between PHPUnit's dependencies and the project's dependencies.
|
||||
*
|
||||
* @param array[] $data A vendor/composer/installed.php data set
|
||||
*
|
||||
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data
|
||||
*/
|
||||
public static function reload($data)
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
*
|
||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
|
||||
*/
|
||||
private static function getInstalled()
|
||||
{
|
||||
if (null === self::$canGetVendors) {
|
||||
self::$canGetVendors = \method_exists('_JchOptimizeVendor\\Composer\\Autoload\\ClassLoader', 'getRegisteredLoaders');
|
||||
}
|
||||
$installed = [];
|
||||
if (self::$canGetVendors) {
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (\is_file($vendorDir.'/composer/installed.php')) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = (require $vendorDir.'/composer/installed.php');
|
||||
if (null === self::$installed && \strtr($vendorDir.'/composer', '\\', '/') === \strtr(__DIR__, '\\', '/')) {
|
||||
self::$installed = $installed[\count($installed) - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (null === self::$installed) {
|
||||
// only require the installed.php file if this file is loaded from its dumped location,
|
||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
||||
if ('C' !== \substr(__DIR__, -8, 1)) {
|
||||
self::$installed = (require __DIR__.'/installed.php');
|
||||
} else {
|
||||
self::$installed = [];
|
||||
}
|
||||
}
|
||||
$installed[] = self::$installed;
|
||||
|
||||
return $installed;
|
||||
}
|
||||
}
|
||||
21
administrator/components/com_jchoptimize/lib/vendor/composer/LICENSE
vendored
Normal file
21
administrator/components/com_jchoptimize/lib/vendor/composer/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
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
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is furnished
|
||||
to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
768
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_classmap.php
vendored
Normal file
768
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_classmap.php
vendored
Normal file
@@ -0,0 +1,768 @@
|
||||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return [
|
||||
'CodeAlfa\\Minify\\Base' => $vendorDir.'/codealfa/minify/src/Base.php',
|
||||
'CodeAlfa\\Minify\\Css' => $vendorDir.'/codealfa/minify/src/Css.php',
|
||||
'CodeAlfa\\Minify\\Html' => $vendorDir.'/codealfa/minify/src/Html.php',
|
||||
'CodeAlfa\\Minify\\Js' => $vendorDir.'/codealfa/minify/src/Js.php',
|
||||
'CodeAlfa\\Minify\\Json' => $vendorDir.'/codealfa/minify/src/Json.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Base' => $vendorDir.'/codealfa/regextokenizer/src/Base.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Css' => $vendorDir.'/codealfa/regextokenizer/src/Css.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Debug\\Debug' => $vendorDir.'/codealfa/regextokenizer/src/Debug/Debug.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Html' => $vendorDir.'/codealfa/regextokenizer/src/Html.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Js' => $vendorDir.'/codealfa/regextokenizer/src/Js.php',
|
||||
'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
|
||||
'JchOptimize\\Command\\ReCache' => $baseDir.'/src/Command/ReCache.php',
|
||||
'JchOptimize\\ContainerFactory' => $baseDir.'/src/ContainerFactory.php',
|
||||
'JchOptimize\\ControllerResolver' => $baseDir.'/src/ControllerResolver.php',
|
||||
'JchOptimize\\Controller\\Ajax' => $baseDir.'/src/Controller/Ajax.php',
|
||||
'JchOptimize\\Controller\\ApplyAutoSetting' => $baseDir.'/src/Controller/ApplyAutoSetting.php',
|
||||
'JchOptimize\\Controller\\CacheInfo' => $baseDir.'/src/Controller/CacheInfo.php',
|
||||
'JchOptimize\\Controller\\ControlPanel' => $baseDir.'/src/Controller/ControlPanel.php',
|
||||
'JchOptimize\\Controller\\ModeSwitcher' => $baseDir.'/src/Controller/ModeSwitcher.php',
|
||||
'JchOptimize\\Controller\\OptimizeImage' => $baseDir.'/src/Controller/OptimizeImage.php',
|
||||
'JchOptimize\\Controller\\OptimizeImages' => $baseDir.'/src/Controller/OptimizeImages.php',
|
||||
'JchOptimize\\Controller\\PageCache' => $baseDir.'/src/Controller/PageCache.php',
|
||||
'JchOptimize\\Controller\\ToggleSetting' => $baseDir.'/src/Controller/ToggleSetting.php',
|
||||
'JchOptimize\\Controller\\Utility' => $baseDir.'/src/Controller/Utility.php',
|
||||
'JchOptimize\\Core\\Admin\\AbstractHtml' => $baseDir.'/src/Core/Admin/AbstractHtml.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\Ajax' => $baseDir.'/src/Core/Admin/Ajax/Ajax.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\FileTree' => $baseDir.'/src/Core/Admin/Ajax/FileTree.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\MultiSelect' => $baseDir.'/src/Core/Admin/Ajax/MultiSelect.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\OptimizeImage' => $baseDir.'/src/Core/Admin/Ajax/OptimizeImage.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\SmartCombine' => $baseDir.'/src/Core/Admin/Ajax/SmartCombine.php',
|
||||
'JchOptimize\\Core\\Admin\\Helper' => $baseDir.'/src/Core/Admin/Helper.php',
|
||||
'JchOptimize\\Core\\Admin\\Icons' => $baseDir.'/src/Core/Admin/Icons.php',
|
||||
'JchOptimize\\Core\\Admin\\ImageUploader' => $baseDir.'/src/Core/Admin/ImageUploader.php',
|
||||
'JchOptimize\\Core\\Admin\\Json' => $baseDir.'/src/Core/Admin/Json.php',
|
||||
'JchOptimize\\Core\\Admin\\MultiSelectItems' => $baseDir.'/src/Core/Admin/MultiSelectItems.php',
|
||||
'JchOptimize\\Core\\Admin\\Tasks' => $baseDir.'/src/Core/Admin/Tasks.php',
|
||||
'JchOptimize\\Core\\Browser' => $baseDir.'/src/Core/Browser.php',
|
||||
'JchOptimize\\Core\\Cdn' => $baseDir.'/src/Core/Cdn.php',
|
||||
'JchOptimize\\Core\\Combiner' => $baseDir.'/src/Core/Combiner.php',
|
||||
'JchOptimize\\Core\\Container\\AbstractContainerFactory' => $baseDir.'/src/Core/Container/AbstractContainerFactory.php',
|
||||
'JchOptimize\\Core\\Container\\Container' => $baseDir.'/src/Core/Container/Container.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\AbstractCallback' => $baseDir.'/src/Core/Css/Callbacks/AbstractCallback.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\CombineMediaQueries' => $baseDir.'/src/Core/Css/Callbacks/CombineMediaQueries.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\CorrectUrls' => $baseDir.'/src/Core/Css/Callbacks/CorrectUrls.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\ExtractCriticalCss' => $baseDir.'/src/Core/Css/Callbacks/ExtractCriticalCss.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\FormatCss' => $baseDir.'/src/Core/Css/Callbacks/FormatCss.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\HandleAtRules' => $baseDir.'/src/Core/Css/Callbacks/HandleAtRules.php',
|
||||
'JchOptimize\\Core\\Css\\CssSearchObject' => $baseDir.'/src/Core/Css/CssSearchObject.php',
|
||||
'JchOptimize\\Core\\Css\\Parser' => $baseDir.'/src/Core/Css/Parser.php',
|
||||
'JchOptimize\\Core\\Css\\Processor' => $baseDir.'/src/Core/Css/Processor.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Controller' => $baseDir.'/src/Core/Css/Sprite/Controller.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Generator' => $baseDir.'/src/Core/Css/Sprite/Generator.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\HandlerInterface' => $baseDir.'/src/Core/Css/Sprite/HandlerInterface.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\AbstractHandler' => $baseDir.'/src/Core/Css/Sprite/Handler/AbstractHandler.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\Gd' => $baseDir.'/src/Core/Css/Sprite/Handler/Gd.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\Imagick' => $baseDir.'/src/Core/Css/Sprite/Handler/Imagick.php',
|
||||
'JchOptimize\\Core\\Debugger' => $baseDir.'/src/Core/Debugger.php',
|
||||
'JchOptimize\\Core\\Exception\\ExceptionInterface' => $baseDir.'/src/Core/Exception/ExceptionInterface.php',
|
||||
'JchOptimize\\Core\\Exception\\ExcludeException' => $baseDir.'/src/Core/Exception/ExcludeException.php',
|
||||
'JchOptimize\\Core\\Exception\\InvalidArgumentException' => $baseDir.'/src/Core/Exception/InvalidArgumentException.php',
|
||||
'JchOptimize\\Core\\Exception\\MissingDependencyException' => $baseDir.'/src/Core/Exception/MissingDependencyException.php',
|
||||
'JchOptimize\\Core\\Exception\\PregErrorException' => $baseDir.'/src/Core/Exception/PregErrorException.php',
|
||||
'JchOptimize\\Core\\Exception\\RuntimeException' => $baseDir.'/src/Core/Exception/RuntimeException.php',
|
||||
'JchOptimize\\Core\\Exception\\StringableTrait' => $baseDir.'/src/Core/Exception/StringableTrait.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\AbstractFeatureHelper' => $baseDir.'/src/Core/FeatureHelpers/AbstractFeatureHelper.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\CdnDomains' => $baseDir.'/src/Core/FeatureHelpers/CdnDomains.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\DynamicJs' => $baseDir.'/src/Core/FeatureHelpers/DynamicJs.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\DynamicSelectors' => $baseDir.'/src/Core/FeatureHelpers/DynamicSelectors.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Fonts' => $baseDir.'/src/Core/FeatureHelpers/Fonts.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Http2Excludes' => $baseDir.'/src/Core/FeatureHelpers/Http2Excludes.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\LazyLoadExtended' => $baseDir.'/src/Core/FeatureHelpers/LazyLoadExtended.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\ReduceDom' => $baseDir.'/src/Core/FeatureHelpers/ReduceDom.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Webp' => $baseDir.'/src/Core/FeatureHelpers/Webp.php',
|
||||
'JchOptimize\\Core\\FileInfosUtilsTrait' => $baseDir.'/src/Core/FileInfosUtilsTrait.php',
|
||||
'JchOptimize\\Core\\FileUtils' => $baseDir.'/src/Core/FileUtils.php',
|
||||
'JchOptimize\\Core\\Helper' => $baseDir.'/src/Core/Helper.php',
|
||||
'JchOptimize\\Core\\Htaccess' => $baseDir.'/src/Core/Htaccess.php',
|
||||
'JchOptimize\\Core\\Html\\AsyncManager' => $baseDir.'/src/Core/Html/AsyncManager.php',
|
||||
'JchOptimize\\Core\\Html\\CacheManager' => $baseDir.'/src/Core/Html/CacheManager.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\AbstractCallback' => $baseDir.'/src/Core/Html/Callbacks/AbstractCallback.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\Cdn' => $baseDir.'/src/Core/Html/Callbacks/Cdn.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\CombineJsCss' => $baseDir.'/src/Core/Html/Callbacks/CombineJsCss.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\LazyLoad' => $baseDir.'/src/Core/Html/Callbacks/LazyLoad.php',
|
||||
'JchOptimize\\Core\\Html\\ElementObject' => $baseDir.'/src/Core/Html/ElementObject.php',
|
||||
'JchOptimize\\Core\\Html\\FilesManager' => $baseDir.'/src/Core/Html/FilesManager.php',
|
||||
'JchOptimize\\Core\\Html\\LinkBuilder' => $baseDir.'/src/Core/Html/LinkBuilder.php',
|
||||
'JchOptimize\\Core\\Html\\Parser' => $baseDir.'/src/Core/Html/Parser.php',
|
||||
'JchOptimize\\Core\\Html\\Processor' => $baseDir.'/src/Core/Html/Processor.php',
|
||||
'JchOptimize\\Core\\Http2Preload' => $baseDir.'/src/Core/Http2Preload.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Cache' => $baseDir.'/src/Core/Interfaces/Cache.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Excludes' => $baseDir.'/src/Core/Interfaces/Excludes.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Hooks' => $baseDir.'/src/Core/Interfaces/Hooks.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Html' => $baseDir.'/src/Core/Interfaces/Html.php',
|
||||
'JchOptimize\\Core\\Interfaces\\MvcLoggerInterface' => $baseDir.'/src/Core/Interfaces/MvcLoggerInterface.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Paths' => $baseDir.'/src/Core/Interfaces/Paths.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Plugin' => $baseDir.'/src/Core/Interfaces/Plugin.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Profiler' => $baseDir.'/src/Core/Interfaces/Profiler.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Utility' => $baseDir.'/src/Core/Interfaces/Utility.php',
|
||||
'JchOptimize\\Core\\Laminas\\Plugins\\ClearExpiredByFactor' => $baseDir.'/src/Core/Laminas/Plugins/ClearExpiredByFactor.php',
|
||||
'JchOptimize\\Core\\Laminas\\Plugins\\ExceptionHandler' => $baseDir.'/src/Core/Laminas/Plugins/ExceptionHandler.php',
|
||||
'JchOptimize\\Core\\Model\\CacheModelTrait' => $baseDir.'/src/Core/Model/CacheModelTrait.php',
|
||||
'JchOptimize\\Core\\Optimize' => $baseDir.'/src/Core/Optimize.php',
|
||||
'JchOptimize\\Core\\Output' => $baseDir.'/src/Core/Output.php',
|
||||
'JchOptimize\\Core\\PageCache\\CaptureCache' => $baseDir.'/src/Core/PageCache/CaptureCache.php',
|
||||
'JchOptimize\\Core\\PageCache\\PageCache' => $baseDir.'/src/Core/PageCache/PageCache.php',
|
||||
'JchOptimize\\Core\\SerializableTrait' => $baseDir.'/src/Core/SerializableTrait.php',
|
||||
'JchOptimize\\Core\\Service\\CachingConfigurationProvider' => $baseDir.'/src/Core/Service/CachingConfigurationProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CachingProvider' => $baseDir.'/src/Core/Service/CachingProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CallbackProvider' => $baseDir.'/src/Core/Service/CallbackProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CoreProvider' => $baseDir.'/src/Core/Service/CoreProvider.php',
|
||||
'JchOptimize\\Core\\Service\\FeatureHelpersProvider' => $baseDir.'/src/Core/Service/FeatureHelpersProvider.php',
|
||||
'JchOptimize\\Core\\Service\\IlluminateViewFactoryProvider' => $baseDir.'/src/Core/Service/IlluminateViewFactoryProvider.php',
|
||||
'JchOptimize\\Core\\Service\\SpatieProvider' => $baseDir.'/src/Core/Service/SpatieProvider.php',
|
||||
'JchOptimize\\Core\\Spatie\\CrawlQueues\\CacheCrawlQueue' => $baseDir.'/src/Core/Spatie/CrawlQueues/CacheCrawlQueue.php',
|
||||
'JchOptimize\\Core\\Spatie\\CrawlQueues\\NonOptimizedCacheCrawlQueue' => $baseDir.'/src/Core/Spatie/CrawlQueues/NonOptimizedCacheCrawlQueue.php',
|
||||
'JchOptimize\\Core\\Spatie\\Crawlers\\HtmlCollector' => $baseDir.'/src/Core/Spatie/Crawlers/HtmlCollector.php',
|
||||
'JchOptimize\\Core\\StorageTaggingTrait' => $baseDir.'/src/Core/StorageTaggingTrait.php',
|
||||
'JchOptimize\\Core\\SystemUri' => $baseDir.'/src/Core/SystemUri.php',
|
||||
'JchOptimize\\Core\\Uri\\UriComparator' => $baseDir.'/src/Core/Uri/UriComparator.php',
|
||||
'JchOptimize\\Core\\Uri\\UriConverter' => $baseDir.'/src/Core/Uri/UriConverter.php',
|
||||
'JchOptimize\\Core\\Uri\\UriNormalizer' => $baseDir.'/src/Core/Uri/UriNormalizer.php',
|
||||
'JchOptimize\\Core\\Uri\\Utils' => $baseDir.'/src/Core/Uri/Utils.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheCli' => $baseDir.'/src/Crawlers/ReCacheCli.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheCliJ3' => $baseDir.'/src/Crawlers/ReCacheCliJ3.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheWithRedirect' => $baseDir.'/src/Crawlers/ReCacheWithRedirect.php',
|
||||
'JchOptimize\\GetApplicationTrait' => $baseDir.'/src/GetApplicationTrait.php',
|
||||
'JchOptimize\\Helper\\CacheCleaner' => $baseDir.'/src/Helper/CacheCleaner.php',
|
||||
'JchOptimize\\Helper\\OptimizeImage' => $baseDir.'/src/Helper/OptimizeImage.php',
|
||||
'JchOptimize\\Joomla\\Database\\Database' => $baseDir.'/src/Joomla/Database/Database.php',
|
||||
'JchOptimize\\Joomla\\Plugin\\PluginHelper' => $baseDir.'/src/Joomla/Plugin/PluginHelper.php',
|
||||
'JchOptimize\\Log\\DelegatingPsrLoggerExtended' => $baseDir.'/src/Log/DelegatingPsrLoggerExtended.php',
|
||||
'JchOptimize\\Log\\JoomlaLogger' => $baseDir.'/src/Log/JoomlaLogger.php',
|
||||
'JchOptimize\\Model\\ApiParams' => $baseDir.'/src/Model/ApiParams.php',
|
||||
'JchOptimize\\Model\\BulkSettings' => $baseDir.'/src/Model/BulkSettings.php',
|
||||
'JchOptimize\\Model\\Cache' => $baseDir.'/src/Model/Cache.php',
|
||||
'JchOptimize\\Model\\Configure' => $baseDir.'/src/Model/Configure.php',
|
||||
'JchOptimize\\Model\\ModeSwitcher' => $baseDir.'/src/Model/ModeSwitcher.php',
|
||||
'JchOptimize\\Model\\OrderPlugins' => $baseDir.'/src/Model/OrderPlugins.php',
|
||||
'JchOptimize\\Model\\PageCache' => $baseDir.'/src/Model/PageCache.php',
|
||||
'JchOptimize\\Model\\ReCache' => $baseDir.'/src/Model/ReCache.php',
|
||||
'JchOptimize\\Model\\ReCacheCliJ3' => $baseDir.'/src/Model/ReCacheCliJ3.php',
|
||||
'JchOptimize\\Model\\SaveSettingsTrait' => $baseDir.'/src/Model/SaveSettingsTrait.php',
|
||||
'JchOptimize\\Model\\TogglePlugins' => $baseDir.'/src/Model/TogglePlugins.php',
|
||||
'JchOptimize\\Model\\Updates' => $baseDir.'/src/Model/Updates.php',
|
||||
'JchOptimize\\Platform\\Cache' => $baseDir.'/src/Platform/Cache.php',
|
||||
'JchOptimize\\Platform\\Excludes' => $baseDir.'/src/Platform/Excludes.php',
|
||||
'JchOptimize\\Platform\\Hooks' => $baseDir.'/src/Platform/Hooks.php',
|
||||
'JchOptimize\\Platform\\Html' => $baseDir.'/src/Platform/Html.php',
|
||||
'JchOptimize\\Platform\\Paths' => $baseDir.'/src/Platform/Paths.php',
|
||||
'JchOptimize\\Platform\\Plugin' => $baseDir.'/src/Platform/Plugin.php',
|
||||
'JchOptimize\\Platform\\Profiler' => $baseDir.'/src/Platform/Profiler.php',
|
||||
'JchOptimize\\Platform\\Utility' => $baseDir.'/src/Platform/Utility.php',
|
||||
'JchOptimize\\Service\\ConfigurationProvider' => $baseDir.'/src/Service/ConfigurationProvider.php',
|
||||
'JchOptimize\\Service\\DatabaseProvider' => $baseDir.'/src/Service/DatabaseProvider.php',
|
||||
'JchOptimize\\Service\\LoggerProvider' => $baseDir.'/src/Service/LoggerProvider.php',
|
||||
'JchOptimize\\Service\\ModeSwitcherProvider' => $baseDir.'/src/Service/ModeSwitcherProvider.php',
|
||||
'JchOptimize\\Service\\MvcProvider' => $baseDir.'/src/Service/MvcProvider.php',
|
||||
'JchOptimize\\Service\\ReCacheProvider' => $baseDir.'/src/Service/ReCacheProvider.php',
|
||||
'JchOptimize\\View\\ControlPanelHtml' => $baseDir.'/src/View/ControlPanelHtml.php',
|
||||
'JchOptimize\\View\\OptimizeImagesHtml' => $baseDir.'/src/View/OptimizeImagesHtml.php',
|
||||
'JchOptimize\\View\\PageCacheHtml' => $baseDir.'/src/View/PageCacheHtml.php',
|
||||
'Joomla\\Database\\DatabaseInterface' => $vendorDir.'/joomla/database/src/DatabaseInterface.php',
|
||||
'_JchOptimizeVendor\\Attribute' => $vendorDir.'/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
||||
'_JchOptimizeVendor\\Composer\\CaBundle\\CaBundle' => $vendorDir.'/composer/ca-bundle/src/CaBundle.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\BodySummarizer' => $vendorDir.'/guzzlehttp/guzzle/src/BodySummarizer.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\BodySummarizerInterface' => $vendorDir.'/guzzlehttp/guzzle/src/BodySummarizerInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Client' => $vendorDir.'/guzzlehttp/guzzle/src/Client.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\ClientInterface' => $vendorDir.'/guzzlehttp/guzzle/src/ClientInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\ClientTrait' => $vendorDir.'/guzzlehttp/guzzle/src/ClientTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\CookieJar' => $vendorDir.'/guzzlehttp/guzzle/src/Cookie/CookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => $vendorDir.'/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\FileCookieJar' => $vendorDir.'/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => $vendorDir.'/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\SetCookie' => $vendorDir.'/guzzlehttp/guzzle/src/Cookie/SetCookie.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\BadResponseException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/BadResponseException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ClientException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/ClientException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ConnectException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/ConnectException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\GuzzleException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/GuzzleException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\RequestException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/RequestException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ServerException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/ServerException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\TransferException' => $vendorDir.'/guzzlehttp/guzzle/src/Exception/TransferException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\HandlerStack' => $vendorDir.'/guzzlehttp/guzzle/src/HandlerStack.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlFactory' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/CurlFactory.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlHandler' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\EasyHandle' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\HeaderProcessor' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/HeaderProcessor.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\MockHandler' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\Proxy' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/Proxy.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\StreamHandler' => $vendorDir.'/guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\MessageFormatter' => $vendorDir.'/guzzlehttp/guzzle/src/MessageFormatter.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\MessageFormatterInterface' => $vendorDir.'/guzzlehttp/guzzle/src/MessageFormatterInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Middleware' => $vendorDir.'/guzzlehttp/guzzle/src/Middleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Pool' => $vendorDir.'/guzzlehttp/guzzle/src/Pool.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\PrepareBodyMiddleware' => $vendorDir.'/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\AggregateException' => $vendorDir.'/guzzlehttp/promises/src/AggregateException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\CancellationException' => $vendorDir.'/guzzlehttp/promises/src/CancellationException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Coroutine' => $vendorDir.'/guzzlehttp/promises/src/Coroutine.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Create' => $vendorDir.'/guzzlehttp/promises/src/Create.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Each' => $vendorDir.'/guzzlehttp/promises/src/Each.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\EachPromise' => $vendorDir.'/guzzlehttp/promises/src/EachPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\FulfilledPromise' => $vendorDir.'/guzzlehttp/promises/src/FulfilledPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Is' => $vendorDir.'/guzzlehttp/promises/src/Is.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Promise' => $vendorDir.'/guzzlehttp/promises/src/Promise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\PromiseInterface' => $vendorDir.'/guzzlehttp/promises/src/PromiseInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\PromisorInterface' => $vendorDir.'/guzzlehttp/promises/src/PromisorInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\RejectedPromise' => $vendorDir.'/guzzlehttp/promises/src/RejectedPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\RejectionException' => $vendorDir.'/guzzlehttp/promises/src/RejectionException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\TaskQueue' => $vendorDir.'/guzzlehttp/promises/src/TaskQueue.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => $vendorDir.'/guzzlehttp/promises/src/TaskQueueInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Utils' => $vendorDir.'/guzzlehttp/promises/src/Utils.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\AppendStream' => $vendorDir.'/guzzlehttp/psr7/src/AppendStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\BufferStream' => $vendorDir.'/guzzlehttp/psr7/src/BufferStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\CachingStream' => $vendorDir.'/guzzlehttp/psr7/src/CachingStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\DroppingStream' => $vendorDir.'/guzzlehttp/psr7/src/DroppingStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\FnStream' => $vendorDir.'/guzzlehttp/psr7/src/FnStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Header' => $vendorDir.'/guzzlehttp/psr7/src/Header.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\InflateStream' => $vendorDir.'/guzzlehttp/psr7/src/InflateStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => $vendorDir.'/guzzlehttp/psr7/src/LazyOpenStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\LimitStream' => $vendorDir.'/guzzlehttp/psr7/src/LimitStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Message' => $vendorDir.'/guzzlehttp/psr7/src/Message.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MessageTrait' => $vendorDir.'/guzzlehttp/psr7/src/MessageTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MimeType' => $vendorDir.'/guzzlehttp/psr7/src/MimeType.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MultipartStream' => $vendorDir.'/guzzlehttp/psr7/src/MultipartStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\NoSeekStream' => $vendorDir.'/guzzlehttp/psr7/src/NoSeekStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\PumpStream' => $vendorDir.'/guzzlehttp/psr7/src/PumpStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Query' => $vendorDir.'/guzzlehttp/psr7/src/Query.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Request' => $vendorDir.'/guzzlehttp/psr7/src/Request.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Response' => $vendorDir.'/guzzlehttp/psr7/src/Response.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Rfc7230' => $vendorDir.'/guzzlehttp/psr7/src/Rfc7230.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\ServerRequest' => $vendorDir.'/guzzlehttp/psr7/src/ServerRequest.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Stream' => $vendorDir.'/guzzlehttp/psr7/src/Stream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $vendorDir.'/guzzlehttp/psr7/src/StreamDecoratorTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\StreamWrapper' => $vendorDir.'/guzzlehttp/psr7/src/StreamWrapper.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UploadedFile' => $vendorDir.'/guzzlehttp/psr7/src/UploadedFile.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Uri' => $vendorDir.'/guzzlehttp/psr7/src/Uri.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriComparator' => $vendorDir.'/guzzlehttp/psr7/src/UriComparator.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriNormalizer' => $vendorDir.'/guzzlehttp/psr7/src/UriNormalizer.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriResolver' => $vendorDir.'/guzzlehttp/psr7/src/UriResolver.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Utils' => $vendorDir.'/guzzlehttp/psr7/src/Utils.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RedirectMiddleware' => $vendorDir.'/guzzlehttp/guzzle/src/RedirectMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RequestOptions' => $vendorDir.'/guzzlehttp/guzzle/src/RequestOptions.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RetryMiddleware' => $vendorDir.'/guzzlehttp/guzzle/src/RetryMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\TransferStats' => $vendorDir.'/guzzlehttp/guzzle/src/TransferStats.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Utils' => $vendorDir.'/guzzlehttp/guzzle/src/Utils.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Batch' => $vendorDir.'/illuminate/bus/Batch.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BatchFactory' => $vendorDir.'/illuminate/bus/BatchFactory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BatchRepository' => $vendorDir.'/illuminate/bus/BatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Batchable' => $vendorDir.'/illuminate/bus/Batchable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BusServiceProvider' => $vendorDir.'/illuminate/bus/BusServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\DatabaseBatchRepository' => $vendorDir.'/illuminate/bus/DatabaseBatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Dispatcher' => $vendorDir.'/illuminate/bus/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Events\\BatchDispatched' => $vendorDir.'/illuminate/bus/Events/BatchDispatched.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\PendingBatch' => $vendorDir.'/illuminate/bus/PendingBatch.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\PrunableBatchRepository' => $vendorDir.'/illuminate/bus/PrunableBatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Queueable' => $vendorDir.'/illuminate/bus/Queueable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\UniqueLock' => $vendorDir.'/illuminate/bus/UniqueLock.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\UpdatedBatchJobCounts' => $vendorDir.'/illuminate/bus/UpdatedBatchJobCounts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\BoundMethod' => $vendorDir.'/illuminate/container/BoundMethod.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\Container' => $vendorDir.'/illuminate/container/Container.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\ContextualBindingBuilder' => $vendorDir.'/illuminate/container/ContextualBindingBuilder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\EntryNotFoundException' => $vendorDir.'/illuminate/container/EntryNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\RewindableGenerator' => $vendorDir.'/illuminate/container/RewindableGenerator.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\Util' => $vendorDir.'/illuminate/container/Util.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\BindingResolutionException' => $vendorDir.'/illuminate/contracts/Container/BindingResolutionException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\CircularDependencyException' => $vendorDir.'/illuminate/contracts/Container/CircularDependencyException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\Container' => $vendorDir.'/illuminate/contracts/Container/Container.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\ContextualBindingBuilder' => $vendorDir.'/illuminate/contracts/Container/ContextualBindingBuilder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Events\\Dispatcher' => $vendorDir.'/illuminate/contracts/Events/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Arrayable' => $vendorDir.'/illuminate/contracts/Support/Arrayable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\CanBeEscapedWhenCastToString' => $vendorDir.'/illuminate/contracts/Support/CanBeEscapedWhenCastToString.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\DeferrableProvider' => $vendorDir.'/illuminate/contracts/Support/DeferrableProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\DeferringDisplayableValue' => $vendorDir.'/illuminate/contracts/Support/DeferringDisplayableValue.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Htmlable' => $vendorDir.'/illuminate/contracts/Support/Htmlable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Jsonable' => $vendorDir.'/illuminate/contracts/Support/Jsonable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\MessageBag' => $vendorDir.'/illuminate/contracts/Support/MessageBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\MessageProvider' => $vendorDir.'/illuminate/contracts/Support/MessageProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Renderable' => $vendorDir.'/illuminate/contracts/Support/Renderable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Responsable' => $vendorDir.'/illuminate/contracts/Support/Responsable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\ValidatedData' => $vendorDir.'/illuminate/contracts/Support/ValidatedData.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\Engine' => $vendorDir.'/illuminate/contracts/View/Engine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\Factory' => $vendorDir.'/illuminate/contracts/View/Factory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\View' => $vendorDir.'/illuminate/contracts/View/View.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\CallQueuedListener' => $vendorDir.'/illuminate/events/CallQueuedListener.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\Dispatcher' => $vendorDir.'/illuminate/events/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\EventServiceProvider' => $vendorDir.'/illuminate/events/EventServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\InvokeQueuedClosure' => $vendorDir.'/illuminate/events/InvokeQueuedClosure.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\NullDispatcher' => $vendorDir.'/illuminate/events/NullDispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\QueuedClosure' => $vendorDir.'/illuminate/events/QueuedClosure.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\Cache' => $vendorDir.'/illuminate/filesystem/Cache.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\Filesystem' => $vendorDir.'/illuminate/filesystem/Filesystem.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemAdapter' => $vendorDir.'/illuminate/filesystem/FilesystemAdapter.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemManager' => $vendorDir.'/illuminate/filesystem/FilesystemManager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemServiceProvider' => $vendorDir.'/illuminate/filesystem/FilesystemServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\LockableFile' => $vendorDir.'/illuminate/filesystem/LockableFile.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\Hub' => $vendorDir.'/illuminate/pipeline/Hub.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\Pipeline' => $vendorDir.'/illuminate/pipeline/Pipeline.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\PipelineServiceProvider' => $vendorDir.'/illuminate/pipeline/PipelineServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\AggregateServiceProvider' => $vendorDir.'/illuminate/support/AggregateServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Arr' => $vendorDir.'/illuminate/collections/Arr.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Carbon' => $vendorDir.'/illuminate/support/Carbon.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Collection' => $vendorDir.'/illuminate/collections/Collection.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Composer' => $vendorDir.'/illuminate/support/Composer.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ConfigurationUrlParser' => $vendorDir.'/illuminate/support/ConfigurationUrlParser.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\DateFactory' => $vendorDir.'/illuminate/support/DateFactory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Enumerable' => $vendorDir.'/illuminate/collections/Enumerable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Env' => $vendorDir.'/illuminate/support/Env.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Fluent' => $vendorDir.'/illuminate/support/Fluent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderCollectionProxy' => $vendorDir.'/illuminate/collections/HigherOrderCollectionProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderTapProxy' => $vendorDir.'/illuminate/support/HigherOrderTapProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderWhenProxy' => $vendorDir.'/illuminate/collections/HigherOrderWhenProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HtmlString' => $vendorDir.'/illuminate/support/HtmlString.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\InteractsWithTime' => $vendorDir.'/illuminate/support/InteractsWithTime.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ItemNotFoundException' => $vendorDir.'/illuminate/collections/ItemNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Js' => $vendorDir.'/illuminate/support/Js.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\LazyCollection' => $vendorDir.'/illuminate/collections/LazyCollection.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Manager' => $vendorDir.'/illuminate/support/Manager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MessageBag' => $vendorDir.'/illuminate/support/MessageBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MultipleInstanceManager' => $vendorDir.'/illuminate/support/MultipleInstanceManager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MultipleItemsFoundException' => $vendorDir.'/illuminate/collections/MultipleItemsFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\NamespacedItemResolver' => $vendorDir.'/illuminate/support/NamespacedItemResolver.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Optional' => $vendorDir.'/illuminate/support/Optional.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Pluralizer' => $vendorDir.'/illuminate/support/Pluralizer.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ProcessUtils' => $vendorDir.'/illuminate/support/ProcessUtils.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Reflector' => $vendorDir.'/illuminate/support/Reflector.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ServiceProvider' => $vendorDir.'/illuminate/support/ServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Str' => $vendorDir.'/illuminate/support/Str.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Stringable' => $vendorDir.'/illuminate/support/Stringable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Timebox' => $vendorDir.'/illuminate/support/Timebox.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\CapsuleManagerTrait' => $vendorDir.'/illuminate/support/Traits/CapsuleManagerTrait.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Conditionable' => $vendorDir.'/illuminate/support/Traits/Conditionable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\EnumeratesValues' => $vendorDir.'/illuminate/collections/Traits/EnumeratesValues.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\ForwardsCalls' => $vendorDir.'/illuminate/support/Traits/ForwardsCalls.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Localizable' => $vendorDir.'/illuminate/support/Traits/Localizable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Macroable' => $vendorDir.'/illuminate/macroable/Traits/Macroable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\ReflectsClosures' => $vendorDir.'/illuminate/support/Traits/ReflectsClosures.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Tappable' => $vendorDir.'/illuminate/support/Traits/Tappable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ValidatedInput' => $vendorDir.'/illuminate/support/ValidatedInput.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ViewErrorBag' => $vendorDir.'/illuminate/support/ViewErrorBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\AnonymousComponent' => $vendorDir.'/illuminate/view/AnonymousComponent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\AppendableAttributeValue' => $vendorDir.'/illuminate/view/AppendableAttributeValue.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\BladeCompiler' => $vendorDir.'/illuminate/view/Compilers/BladeCompiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Compiler' => $vendorDir.'/illuminate/view/Compilers/Compiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\CompilerInterface' => $vendorDir.'/illuminate/view/Compilers/CompilerInterface.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\ComponentTagCompiler' => $vendorDir.'/illuminate/view/Compilers/ComponentTagCompiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesAuthorizations' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesAuthorizations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesClasses' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesClasses.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesComments' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesComments.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesComponents' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesComponents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesConditionals' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesConditionals.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesEchos' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesEchos.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesErrors' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesErrors.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesHelpers' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesHelpers.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesIncludes' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesIncludes.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesInjections' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesInjections.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesJs' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesJs.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesJson' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesJson.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesLayouts' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesLayouts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesLoops' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesLoops.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesRawPhp' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesRawPhp.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesStacks' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesStacks.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesTranslations' => $vendorDir.'/illuminate/view/Compilers/Concerns/CompilesTranslations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Component' => $vendorDir.'/illuminate/view/Component.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ComponentAttributeBag' => $vendorDir.'/illuminate/view/ComponentAttributeBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ComponentSlot' => $vendorDir.'/illuminate/view/ComponentSlot.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesComponents' => $vendorDir.'/illuminate/view/Concerns/ManagesComponents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesEvents' => $vendorDir.'/illuminate/view/Concerns/ManagesEvents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesLayouts' => $vendorDir.'/illuminate/view/Concerns/ManagesLayouts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesLoops' => $vendorDir.'/illuminate/view/Concerns/ManagesLoops.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesStacks' => $vendorDir.'/illuminate/view/Concerns/ManagesStacks.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesTranslations' => $vendorDir.'/illuminate/view/Concerns/ManagesTranslations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\DynamicComponent' => $vendorDir.'/illuminate/view/DynamicComponent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\CompilerEngine' => $vendorDir.'/illuminate/view/Engines/CompilerEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\Engine' => $vendorDir.'/illuminate/view/Engines/Engine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\EngineResolver' => $vendorDir.'/illuminate/view/Engines/EngineResolver.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\FileEngine' => $vendorDir.'/illuminate/view/Engines/FileEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\PhpEngine' => $vendorDir.'/illuminate/view/Engines/PhpEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Factory' => $vendorDir.'/illuminate/view/Factory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\FileViewFinder' => $vendorDir.'/illuminate/view/FileViewFinder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\InvokableComponentVariable' => $vendorDir.'/illuminate/view/InvokableComponentVariable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Middleware\\ShareErrorsFromSession' => $vendorDir.'/illuminate/view/Middleware/ShareErrorsFromSession.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\View' => $vendorDir.'/illuminate/view/View.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewException' => $vendorDir.'/illuminate/view/ViewException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewFinderInterface' => $vendorDir.'/illuminate/view/ViewFinderInterface.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewName' => $vendorDir.'/illuminate/view/ViewName.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewServiceProvider' => $vendorDir.'/illuminate/view/ViewServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\AbstractController' => $vendorDir.'/joomla/controller/src/AbstractController.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\ControllerInterface' => $vendorDir.'/joomla/controller/src/ControllerInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Container' => $vendorDir.'/joomla/di/src/Container.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerAwareInterface' => $vendorDir.'/joomla/di/src/ContainerAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerAwareTrait' => $vendorDir.'/joomla/di/src/ContainerAwareTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerResource' => $vendorDir.'/joomla/di/src/ContainerResource.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\ContainerNotFoundException' => $vendorDir.'/joomla/di/src/Exception/ContainerNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\DependencyResolutionException' => $vendorDir.'/joomla/di/src/Exception/DependencyResolutionException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\KeyNotFoundException' => $vendorDir.'/joomla/di/src/Exception/KeyNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\ProtectedKeyException' => $vendorDir.'/joomla/di/src/Exception/ProtectedKeyException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ServiceProviderInterface' => $vendorDir.'/joomla/di/src/ServiceProviderInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\DatabaseModelInterface' => $vendorDir.'/joomla/model/src/DatabaseModelInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\DatabaseModelTrait' => $vendorDir.'/joomla/model/src/DatabaseModelTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\StatefulModelInterface' => $vendorDir.'/joomla/model/src/StatefulModelInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\StatefulModelTrait' => $vendorDir.'/joomla/model/src/StatefulModelTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\AbstractRenderer' => $vendorDir.'/joomla/renderer/src/AbstractRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\AddTemplateFolderInterface' => $vendorDir.'/joomla/renderer/src/AddTemplateFolderInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\BladeRenderer' => $vendorDir.'/joomla/renderer/src/BladeRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\ConfigurableFileExtensionInterface' => $vendorDir.'/joomla/renderer/src/ConfigurableFileExtensionInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\MustacheRenderer' => $vendorDir.'/joomla/renderer/src/MustacheRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\PhpEngineRenderer' => $vendorDir.'/joomla/renderer/src/PhpEngineRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\PlatesRenderer' => $vendorDir.'/joomla/renderer/src/PlatesRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\RendererInterface' => $vendorDir.'/joomla/renderer/src/RendererInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\TwigRenderer' => $vendorDir.'/joomla/renderer/src/TwigRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\AbstractView' => $vendorDir.'/joomla/view/src/AbstractView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\HtmlView' => $vendorDir.'/joomla/view/src/HtmlView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\JsonView' => $vendorDir.'/joomla/view/src/JsonView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\ViewInterface' => $vendorDir.'/joomla/view/src/ViewInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\BadMethodCallException' => $vendorDir.'/laminas/laminas-cache/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-cache/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\ExtensionNotLoadedException' => $vendorDir.'/laminas/laminas-cache/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-cache/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\LogicException' => $vendorDir.'/laminas/laminas-cache/src/Exception/LogicException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\MissingDependencyException' => $vendorDir.'/laminas/laminas-cache/src/Exception/MissingDependencyException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\MissingKeyException' => $vendorDir.'/laminas/laminas-cache/src/Exception/MissingKeyException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\OutOfSpaceException' => $vendorDir.'/laminas/laminas-cache/src/Exception/OutOfSpaceException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-cache/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\UnexpectedValueException' => $vendorDir.'/laminas/laminas-cache/src/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\UnsupportedMethodCallException' => $vendorDir.'/laminas/laminas-cache/src/Exception/UnsupportedMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Module' => $vendorDir.'/laminas/laminas-cache/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\AbstractPattern' => $vendorDir.'/laminas/laminas-cache/src/Pattern/AbstractPattern.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\AbstractStorageCapablePattern' => $vendorDir.'/laminas/laminas-cache/src/Pattern/AbstractStorageCapablePattern.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\CallbackCache' => $vendorDir.'/laminas/laminas-cache/src/Pattern/CallbackCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\CaptureCache' => $vendorDir.'/laminas/laminas-cache/src/Pattern/CaptureCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\ObjectCache' => $vendorDir.'/laminas/laminas-cache/src/Pattern/ObjectCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\OutputCache' => $vendorDir.'/laminas/laminas-cache/src/Pattern/OutputCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\PatternInterface' => $vendorDir.'/laminas/laminas-cache/src/Pattern/PatternInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\PatternOptions' => $vendorDir.'/laminas/laminas-cache/src/Pattern/PatternOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\StorageCapableInterface' => $vendorDir.'/laminas/laminas-cache/src/Pattern/StorageCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\DeprecatedSchemaDetector' => $vendorDir.'/laminas/laminas-cache/src/Service/DeprecatedSchemaDetector.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\DeprecatedSchemaDetectorInterface' => $vendorDir.'/laminas/laminas-cache/src/Service/DeprecatedSchemaDetectorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageAdapterFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactoryFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageAdapterFactoryFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactoryInterface' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageAdapterFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterPluginManagerFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageAdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageCacheAbstractServiceFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageCacheAbstractServiceFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageCacheFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StorageCacheFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StoragePluginFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactoryFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StoragePluginFactoryFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactoryInterface' => $vendorDir.'/laminas/laminas-cache/src/Service/StoragePluginFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginManagerFactory' => $vendorDir.'/laminas/laminas-cache/src/Service/StoragePluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\AdapterPluginManager' => $vendorDir.'/laminas/laminas-cache/src/Storage/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\AbstractAdapter' => $vendorDir.'/laminas/laminas-cache/src/Storage/Adapter/AbstractAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\AdapterOptions' => $vendorDir.'/laminas/laminas-cache/src/Storage/Adapter/AdapterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/Apcu.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\ApcuIterator' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/ApcuIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\ApcuOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/ApcuOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\AdapterPluginManagerDelegatorFactory' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/Apcu/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/Apcu/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\Module' => $vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src/Apcu/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole' => $vendorDir.'/laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\AdapterPluginManagerDelegatorFactory' => $vendorDir.'/laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\Module' => $vendorDir.'/laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\InvalidRedisClusterConfigurationException' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Exception/InvalidRedisClusterConfigurationException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\MetadataErrorException' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Exception/MetadataErrorException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\RedisRuntimeException' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Exception/RedisRuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\FilesystemIterator' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/FilesystemIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\FilesystemOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/FilesystemOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\AdapterPluginManagerDelegatorFactory' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Exception\\MetadataException' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Exception/MetadataException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Exception\\UnlinkException' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Exception/UnlinkException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\FilesystemInteractionInterface' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/FilesystemInteractionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\LocalFilesystemInteraction' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Module' => $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\KeyListIterator' => $vendorDir.'/laminas/laminas-cache/src/Storage/Adapter/KeyListIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/Memcached.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\MemcachedOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/MemcachedOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\MemcachedResourceManager' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/MemcachedResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\AdapterPluginManagerDelegatorFactory' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/Memcached/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/Memcached/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\Module' => $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src/Memcached/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Redis.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisCluster' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisCluster.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisClusterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterOptionsFromIni' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisClusterOptionsFromIni.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterResourceManager' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisClusterResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterResourceManagerInterface' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisClusterResourceManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisResourceManager' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/RedisResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\AdapterPluginManagerDelegatorFactory' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Redis/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\ConfigProvider' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Redis/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\Module' => $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src/Redis/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\WinCache' => $vendorDir.'/laminas/laminas-cache-storage-adapter-wincache/src/WinCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\WinCacheOptions' => $vendorDir.'/laminas/laminas-cache-storage-adapter-wincache/src/WinCacheOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\AvailableSpaceCapableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/AvailableSpaceCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Capabilities' => $vendorDir.'/laminas/laminas-cache/src/Storage/Capabilities.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearByNamespaceInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/ClearByNamespaceInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearByPrefixInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/ClearByPrefixInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearExpiredInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/ClearExpiredInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Event' => $vendorDir.'/laminas/laminas-cache/src/Storage/Event.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ExceptionEvent' => $vendorDir.'/laminas/laminas-cache/src/Storage/ExceptionEvent.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\FlushableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/FlushableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\IterableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/IterableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\IteratorInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/IteratorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\OptimizableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/OptimizableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginAwareInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/PluginAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginCapableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/PluginCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginManager' => $vendorDir.'/laminas/laminas-cache/src/Storage/PluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\AbstractPlugin' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/AbstractPlugin.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\ClearExpiredByFactor' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/ClearExpiredByFactor.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\ExceptionHandler' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/ExceptionHandler.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\IgnoreUserAbort' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/IgnoreUserAbort.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\OptimizeByFactor' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/OptimizeByFactor.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\PluginInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/PluginInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\PluginOptions' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/PluginOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\Serializer' => $vendorDir.'/laminas/laminas-cache/src/Storage/Plugin/Serializer.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PostEvent' => $vendorDir.'/laminas/laminas-cache/src/Storage/PostEvent.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\StorageInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/StorageInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\TaggableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/TaggableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\TotalSpaceCapableInterface' => $vendorDir.'/laminas/laminas-cache/src/Storage/TotalSpaceCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\AbstractListenerAggregate' => $vendorDir.'/laminas/laminas-eventmanager/src/AbstractListenerAggregate.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Event' => $vendorDir.'/laminas/laminas-eventmanager/src/Event.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/EventInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManager' => $vendorDir.'/laminas/laminas-eventmanager/src/EventManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerAwareInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/EventManagerAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerAwareTrait' => $vendorDir.'/laminas/laminas-eventmanager/src/EventManagerAwareTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/EventManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventsCapableInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/EventsCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\DomainException' => $vendorDir.'/laminas/laminas-eventmanager/src/Exception/DomainException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-eventmanager/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\InvalidCallbackException' => $vendorDir.'/laminas/laminas-eventmanager/src/Exception/InvalidCallbackException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-eventmanager/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\FilterChain' => $vendorDir.'/laminas/laminas-eventmanager/src/FilterChain.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Filter\\FilterInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/Filter/FilterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Filter\\FilterIterator' => $vendorDir.'/laminas/laminas-eventmanager/src/Filter/FilterIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyEventListener' => $vendorDir.'/laminas/laminas-eventmanager/src/LazyEventListener.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyListener' => $vendorDir.'/laminas/laminas-eventmanager/src/LazyListener.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyListenerAggregate' => $vendorDir.'/laminas/laminas-eventmanager/src/LazyListenerAggregate.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ListenerAggregateInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/ListenerAggregateInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ListenerAggregateTrait' => $vendorDir.'/laminas/laminas-eventmanager/src/ListenerAggregateTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ResponseCollection' => $vendorDir.'/laminas/laminas-eventmanager/src/ResponseCollection.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventManager' => $vendorDir.'/laminas/laminas-eventmanager/src/SharedEventManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventManagerInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/SharedEventManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventsCapableInterface' => $vendorDir.'/laminas/laminas-eventmanager/src/SharedEventsCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Decoder' => $vendorDir.'/laminas/laminas-json/src/Decoder.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Encoder' => $vendorDir.'/laminas/laminas-json/src/Encoder.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\BadMethodCallException' => $vendorDir.'/laminas/laminas-json/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-json/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-json/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\RecursionException' => $vendorDir.'/laminas/laminas-json/src/Exception/RecursionException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-json/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Expr' => $vendorDir.'/laminas/laminas-json/src/Expr.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Json' => $vendorDir.'/laminas/laminas-json/src/Json.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterAggregateInterface' => $vendorDir.'/laminas/laminas-paginator/src/AdapterAggregateInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterPluginManager' => $vendorDir.'/laminas/laminas-paginator/src/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterPluginManagerFactory' => $vendorDir.'/laminas/laminas-paginator/src/AdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\AdapterInterface' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/AdapterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\ArrayAdapter' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/ArrayAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Callback' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Callback.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\DbSelect' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/DbSelect.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\DbTableGateway' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/DbTableGateway.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\MissingRowCountColumnException' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Exception/MissingRowCountColumnException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\UnexpectedValueException' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Iterator' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Iterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\NullFill' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/NullFill.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\CallbackFactory' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Service/CallbackFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\DbSelectFactory' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Service/DbSelectFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\DbTableGatewayFactory' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Service/DbTableGatewayFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\IteratorFactory' => $vendorDir.'/laminas/laminas-paginator/src/Adapter/Service/IteratorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ConfigProvider' => $vendorDir.'/laminas/laminas-paginator/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-paginator/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-paginator/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-paginator/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\UnexpectedValueException' => $vendorDir.'/laminas/laminas-paginator/src/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Factory' => $vendorDir.'/laminas/laminas-paginator/src/Factory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Module' => $vendorDir.'/laminas/laminas-paginator/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Paginator' => $vendorDir.'/laminas/laminas-paginator/src/Paginator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\PaginatorIterator' => $vendorDir.'/laminas/laminas-paginator/src/PaginatorIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStylePluginManager' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStylePluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStylePluginManagerFactory' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStylePluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\All' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStyle/All.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Elastic' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStyle/Elastic.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Jumping' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStyle/Jumping.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\ScrollingStyleInterface' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStyle/ScrollingStyleInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Sliding' => $vendorDir.'/laminas/laminas-paginator/src/ScrollingStyle/Sliding.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\SerializableLimitIterator' => $vendorDir.'/laminas/laminas-paginator/src/SerializableLimitIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\AdapterPluginManager' => $vendorDir.'/laminas/laminas-serializer/src/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\AdapterPluginManagerFactory' => $vendorDir.'/laminas/laminas-serializer/src/AdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AbstractAdapter' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/AbstractAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AdapterInterface' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/AdapterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AdapterOptions' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/AdapterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\IgBinary' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/IgBinary.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\Json' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/Json.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\JsonOptions' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/JsonOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\MsgPack' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/MsgPack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpCode' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/PhpCode.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpSerialize' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/PhpSerialize.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpSerializeOptions' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/PhpSerializeOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PythonPickle' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/PythonPickle.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PythonPickleOptions' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/PythonPickleOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\Wddx' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/Wddx.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\WddxOptions' => $vendorDir.'/laminas/laminas-serializer/src/Adapter/WddxOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\ConfigProvider' => $vendorDir.'/laminas/laminas-serializer/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-serializer/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\ExtensionNotLoadedException' => $vendorDir.'/laminas/laminas-serializer/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-serializer/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-serializer/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Module' => $vendorDir.'/laminas/laminas-serializer/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Serializer' => $vendorDir.'/laminas/laminas-serializer/src/Serializer.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/AbstractFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactory\\ConfigAbstractFactory' => $vendorDir.'/laminas/laminas-servicemanager/src/AbstractFactory/ConfigAbstractFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactory\\ReflectionBasedAbstractFactory' => $vendorDir.'/laminas/laminas-servicemanager/src/AbstractFactory/ReflectionBasedAbstractFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractPluginManager' => $vendorDir.'/laminas/laminas-servicemanager/src/AbstractPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Config' => $vendorDir.'/laminas/laminas-servicemanager/src/Config.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ConfigInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/ConfigInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\DelegatorFactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/DelegatorFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ContainerModificationsNotAllowedException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/ContainerModificationsNotAllowedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\CyclicAliasException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/CyclicAliasException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\InvalidServiceException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/InvalidServiceException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ServiceNotCreatedException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/ServiceNotCreatedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ServiceNotFoundException' => $vendorDir.'/laminas/laminas-servicemanager/src/Exception/ServiceNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\FactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/FactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\AbstractFactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/Factory/AbstractFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\DelegatorFactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/Factory/DelegatorFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\FactoryInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/Factory/FactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\InvokableFactory' => $vendorDir.'/laminas/laminas-servicemanager/src/Factory/InvokableFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\InitializerInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/InitializerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Initializer\\InitializerInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/Initializer/InitializerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\PluginManagerInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/PluginManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Proxy\\LazyServiceFactory' => $vendorDir.'/laminas/laminas-servicemanager/src/Proxy/LazyServiceFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ServiceLocatorInterface' => $vendorDir.'/laminas/laminas-servicemanager/src/ServiceLocatorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ServiceManager' => $vendorDir.'/laminas/laminas-servicemanager/src/ServiceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\ConfigDumper' => $vendorDir.'/laminas/laminas-servicemanager/src/Tool/ConfigDumper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\ConfigDumperCommand' => $vendorDir.'/laminas/laminas-servicemanager/src/Tool/ConfigDumperCommand.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\FactoryCreator' => $vendorDir.'/laminas/laminas-servicemanager/src/Tool/FactoryCreator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\FactoryCreatorCommand' => $vendorDir.'/laminas/laminas-servicemanager/src/Tool/FactoryCreatorCommand.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\AbstractOptions' => $vendorDir.'/laminas/laminas-stdlib/src/AbstractOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayObject' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayObject.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArraySerializableInterface' => $vendorDir.'/laminas/laminas-stdlib/src/ArraySerializableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayStack' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayStack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayUtils.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeRemoveKey' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayUtils/MergeRemoveKey.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeReplaceKey' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayUtils/MergeReplaceKey.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeReplaceKeyInterface' => $vendorDir.'/laminas/laminas-stdlib/src/ArrayUtils/MergeReplaceKeyInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ConsoleHelper' => $vendorDir.'/laminas/laminas-stdlib/src/ConsoleHelper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\DispatchableInterface' => $vendorDir.'/laminas/laminas-stdlib/src/DispatchableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ErrorHandler' => $vendorDir.'/laminas/laminas-stdlib/src/ErrorHandler.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\BadMethodCallException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\DomainException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/DomainException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\ExceptionInterface' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\ExtensionNotLoadedException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\InvalidArgumentException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\LogicException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/LogicException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\RuntimeException' => $vendorDir.'/laminas/laminas-stdlib/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\FastPriorityQueue' => $vendorDir.'/laminas/laminas-stdlib/src/FastPriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Glob' => $vendorDir.'/laminas/laminas-stdlib/src/Glob.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\AllGuardsTrait' => $vendorDir.'/laminas/laminas-stdlib/src/Guard/AllGuardsTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\ArrayOrTraversableGuardTrait' => $vendorDir.'/laminas/laminas-stdlib/src/Guard/ArrayOrTraversableGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\EmptyGuardTrait' => $vendorDir.'/laminas/laminas-stdlib/src/Guard/EmptyGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\NullGuardTrait' => $vendorDir.'/laminas/laminas-stdlib/src/Guard/NullGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\InitializableInterface' => $vendorDir.'/laminas/laminas-stdlib/src/InitializableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\JsonSerializable' => $vendorDir.'/laminas/laminas-stdlib/src/JsonSerializable.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Message' => $vendorDir.'/laminas/laminas-stdlib/src/Message.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\MessageInterface' => $vendorDir.'/laminas/laminas-stdlib/src/MessageInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ParameterObjectInterface' => $vendorDir.'/laminas/laminas-stdlib/src/ParameterObjectInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Parameters' => $vendorDir.'/laminas/laminas-stdlib/src/Parameters.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ParametersInterface' => $vendorDir.'/laminas/laminas-stdlib/src/ParametersInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\PriorityList' => $vendorDir.'/laminas/laminas-stdlib/src/PriorityList.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\PriorityQueue' => $vendorDir.'/laminas/laminas-stdlib/src/PriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Request' => $vendorDir.'/laminas/laminas-stdlib/src/Request.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\RequestInterface' => $vendorDir.'/laminas/laminas-stdlib/src/RequestInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Response' => $vendorDir.'/laminas/laminas-stdlib/src/Response.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ResponseInterface' => $vendorDir.'/laminas/laminas-stdlib/src/ResponseInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplPriorityQueue' => $vendorDir.'/laminas/laminas-stdlib/src/SplPriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplQueue' => $vendorDir.'/laminas/laminas-stdlib/src/SplQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplStack' => $vendorDir.'/laminas/laminas-stdlib/src/SplStack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringUtils' => $vendorDir.'/laminas/laminas-stdlib/src/StringUtils.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\AbstractStringWrapper' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/AbstractStringWrapper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Iconv' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/Iconv.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Intl' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/Intl.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\MbString' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/MbString.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Native' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/Native.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\StringWrapperInterface' => $vendorDir.'/laminas/laminas-stdlib/src/StringWrapper/StringWrapperInterface.php',
|
||||
'_JchOptimizeVendor\\PhpToken' => $vendorDir.'/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\ContainerExceptionInterface' => $vendorDir.'/psr/container/src/ContainerExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\ContainerInterface' => $vendorDir.'/psr/container/src/ContainerInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\NotFoundExceptionInterface' => $vendorDir.'/psr/container/src/NotFoundExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\ClientExceptionInterface' => $vendorDir.'/psr/http-client/src/ClientExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\ClientInterface' => $vendorDir.'/psr/http-client/src/ClientInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\NetworkExceptionInterface' => $vendorDir.'/psr/http-client/src/NetworkExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\RequestExceptionInterface' => $vendorDir.'/psr/http-client/src/RequestExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\MessageInterface' => $vendorDir.'/psr/http-message/src/MessageInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\RequestInterface' => $vendorDir.'/psr/http-message/src/RequestInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\ResponseInterface' => $vendorDir.'/psr/http-message/src/ResponseInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir.'/psr/http-message/src/ServerRequestInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\StreamInterface' => $vendorDir.'/psr/http-message/src/StreamInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir.'/psr/http-message/src/UploadedFileInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\UriInterface' => $vendorDir.'/psr/http-message/src/UriInterface.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlObservers\\CrawlObserver' => $vendorDir.'/spatie/crawler/src/CrawlObservers/CrawlObserver.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlObservers\\CrawlObserverCollection' => $vendorDir.'/spatie/crawler/src/CrawlObservers/CrawlObserverCollection.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlAllUrls' => $vendorDir.'/spatie/crawler/src/CrawlProfiles/CrawlAllUrls.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlInternalUrls' => $vendorDir.'/spatie/crawler/src/CrawlProfiles/CrawlInternalUrls.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlProfile' => $vendorDir.'/spatie/crawler/src/CrawlProfiles/CrawlProfile.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlSubdomains' => $vendorDir.'/spatie/crawler/src/CrawlProfiles/CrawlSubdomains.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlQueues\\ArrayCrawlQueue' => $vendorDir.'/spatie/crawler/src/CrawlQueues/ArrayCrawlQueue.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlQueues\\CrawlQueue' => $vendorDir.'/spatie/crawler/src/CrawlQueues/CrawlQueue.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlUrl' => $vendorDir.'/spatie/crawler/src/CrawlUrl.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Crawler' => $vendorDir.'/spatie/crawler/src/Crawler.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlerRobots' => $vendorDir.'/spatie/crawler/src/CrawlerRobots.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\InvalidCrawlRequestHandler' => $vendorDir.'/spatie/crawler/src/Exceptions/InvalidCrawlRequestHandler.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\InvalidUrl' => $vendorDir.'/spatie/crawler/src/Exceptions/InvalidUrl.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\UrlNotFoundByIndex' => $vendorDir.'/spatie/crawler/src/Exceptions/UrlNotFoundByIndex.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Handlers\\CrawlRequestFailed' => $vendorDir.'/spatie/crawler/src/Handlers/CrawlRequestFailed.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Handlers\\CrawlRequestFulfilled' => $vendorDir.'/spatie/crawler/src/Handlers/CrawlRequestFulfilled.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\LinkAdder' => $vendorDir.'/spatie/crawler/src/LinkAdder.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\ResponseWithCachedBody' => $vendorDir.'/spatie/crawler/src/ResponseWithCachedBody.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\Robots' => $vendorDir.'/spatie/robots-txt/src/Robots.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsHeaders' => $vendorDir.'/spatie/robots-txt/src/RobotsHeaders.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsMeta' => $vendorDir.'/spatie/robots-txt/src/RobotsMeta.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsTxt' => $vendorDir.'/spatie/robots-txt/src/RobotsTxt.php',
|
||||
'_JchOptimizeVendor\\Stringable' => $vendorDir.'/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\AbstractUriElement' => $vendorDir.'/symfony/dom-crawler/AbstractUriElement.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Crawler' => $vendorDir.'/symfony/dom-crawler/Crawler.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\ChoiceFormField' => $vendorDir.'/symfony/dom-crawler/Field/ChoiceFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\FileFormField' => $vendorDir.'/symfony/dom-crawler/Field/FileFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\FormField' => $vendorDir.'/symfony/dom-crawler/Field/FormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\InputFormField' => $vendorDir.'/symfony/dom-crawler/Field/InputFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\TextareaFormField' => $vendorDir.'/symfony/dom-crawler/Field/TextareaFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Form' => $vendorDir.'/symfony/dom-crawler/Form.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\FormFieldRegistry' => $vendorDir.'/symfony/dom-crawler/FormFieldRegistry.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Image' => $vendorDir.'/symfony/dom-crawler/Image.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Link' => $vendorDir.'/symfony/dom-crawler/Link.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\UriResolver' => $vendorDir.'/symfony/dom-crawler/UriResolver.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir.'/symfony/polyfill-mbstring/Mbstring.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\Php80' => $vendorDir.'/symfony/polyfill-php80/Php80.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\PhpToken' => $vendorDir.'/symfony/polyfill-php80/PhpToken.php',
|
||||
'_JchOptimizeVendor\\Tree\\Builder\\NodeBuilder' => $vendorDir.'/nicmart/tree/src/Builder/NodeBuilder.php',
|
||||
'_JchOptimizeVendor\\Tree\\Builder\\NodeBuilderInterface' => $vendorDir.'/nicmart/tree/src/Builder/NodeBuilderInterface.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\Node' => $vendorDir.'/nicmart/tree/src/Node/Node.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\NodeInterface' => $vendorDir.'/nicmart/tree/src/Node/NodeInterface.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\NodeTrait' => $vendorDir.'/nicmart/tree/src/Node/NodeTrait.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\PostOrderVisitor' => $vendorDir.'/nicmart/tree/src/Visitor/PostOrderVisitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\PreOrderVisitor' => $vendorDir.'/nicmart/tree/src/Visitor/PreOrderVisitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\Visitor' => $vendorDir.'/nicmart/tree/src/Visitor/Visitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\YieldVisitor' => $vendorDir.'/nicmart/tree/src/Visitor/YieldVisitor.php',
|
||||
'_JchOptimizeVendor\\UnhandledMatchError' => $vendorDir.'/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
||||
'_JchOptimizeVendor\\ValueError' => $vendorDir.'/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\Assert' => $vendorDir.'/webmozart/assert/src/Assert.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\InvalidArgumentException' => $vendorDir.'/webmozart/assert/src/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\Mixin' => $vendorDir.'/webmozart/assert/src/Mixin.php',
|
||||
];
|
||||
20
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_files.php
vendored
Normal file
20
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_files.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return [
|
||||
'e4fb59bbac7337935dfbb596217f40f060799491728b879e74601d83e38b2cad' => $vendorDir.'/illuminate/collections/helpers.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f072579e7bd17821bb1321b87411366eae' => $vendorDir.'/illuminate/support/helpers.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0c9d07b32a2e02bc0fc582d4f0c1b56cc' => $vendorDir.'/laminas/laminas-servicemanager/src/autoload.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f06e3fae29631ef280660b3cdad06f25a8' => $vendorDir.'/symfony/deprecation-contracts/function.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0ef65a1626449d89d0811cf9befce46f0' => $vendorDir.'/illuminate/events/functions.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f07b11c4dc42b3b3023073cb14e519683c' => $vendorDir.'/ralouphie/getallheaders/src/getallheaders.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir.'/guzzlehttp/psr7/src/functions_include.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0c964ee0ededf28c96ebd9db5099ef910' => $vendorDir.'/guzzlehttp/promises/src/functions_include.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f00e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir.'/symfony/polyfill-mbstring/bootstrap.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0a4a119a56e50fbb293281d9a48007e0e' => $vendorDir.'/symfony/polyfill-php80/bootstrap.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f037a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir.'/guzzlehttp/guzzle/src/functions_include.php',
|
||||
];
|
||||
9
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_namespaces.php
vendored
Normal file
9
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_namespaces.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return [
|
||||
];
|
||||
48
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_psr4.php
vendored
Normal file
48
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_psr4.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return [
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\' => [$vendorDir.'/webmozart/assert/src'],
|
||||
'_JchOptimizeVendor\\Tree\\' => [$vendorDir.'/nicmart/tree/src'],
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\' => [$vendorDir.'/symfony/polyfill-php80'],
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Mbstring\\' => [$vendorDir.'/symfony/polyfill-mbstring'],
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\' => [$vendorDir.'/symfony/dom-crawler'],
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\' => [$vendorDir.'/spatie/robots-txt/src'],
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\' => [$vendorDir.'/spatie/crawler/src'],
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\' => [$vendorDir.'/psr/http-message/src'],
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\' => [$vendorDir.'/psr/http-client/src'],
|
||||
'_JchOptimizeVendor\\Psr\\Container\\' => [$vendorDir.'/psr/container/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\' => [$vendorDir.'/laminas/laminas-stdlib/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\' => [$vendorDir.'/laminas/laminas-servicemanager/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\' => [$vendorDir.'/laminas/laminas-serializer/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\' => [$vendorDir.'/laminas/laminas-paginator/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\' => [$vendorDir.'/laminas/laminas-json/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\' => [$vendorDir.'/laminas/laminas-eventmanager/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\' => [$vendorDir.'/laminas/laminas-cache-storage-adapter-apcu/src', $vendorDir.'/laminas/laminas-cache-storage-adapter-blackhole/src', $vendorDir.'/laminas/laminas-cache-storage-adapter-filesystem/src', $vendorDir.'/laminas/laminas-cache-storage-adapter-memcached/src', $vendorDir.'/laminas/laminas-cache-storage-adapter-redis/src', $vendorDir.'/laminas/laminas-cache-storage-adapter-wincache/src'],
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\' => [$vendorDir.'/laminas/laminas-cache/src'],
|
||||
'_JchOptimizeVendor\\Joomla\\View\\' => [$vendorDir.'/joomla/view/src'],
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\' => [$vendorDir.'/joomla/renderer/src'],
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\' => [$vendorDir.'/joomla/model/src'],
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\' => [$vendorDir.'/joomla/di/src'],
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\' => [$vendorDir.'/joomla/controller/src'],
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\' => [$vendorDir.'/illuminate/view'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\' => [$vendorDir.'/illuminate/collections', $vendorDir.'/illuminate/macroable', $vendorDir.'/illuminate/support'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\' => [$vendorDir.'/illuminate/pipeline'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\' => [$vendorDir.'/illuminate/filesystem'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\' => [$vendorDir.'/illuminate/events'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\' => [$vendorDir.'/illuminate/contracts'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\' => [$vendorDir.'/illuminate/container'],
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\' => [$vendorDir.'/illuminate/bus'],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\' => [$vendorDir.'/guzzlehttp/psr7/src'],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\' => [$vendorDir.'/guzzlehttp/promises/src'],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\' => [$vendorDir.'/guzzlehttp/guzzle/src'],
|
||||
'_JchOptimizeVendor\\Composer\\CaBundle\\' => [$vendorDir.'/composer/ca-bundle/src'],
|
||||
'Joomla\\Database\\' => [$vendorDir.'/joomla/database/src'],
|
||||
'JchOptimize\\' => [$baseDir.'/src'],
|
||||
'CodeAlfa\\RegexTokenizer\\' => [$vendorDir.'/codealfa/regextokenizer/src'],
|
||||
'CodeAlfa\\Minify\\' => [$vendorDir.'/codealfa/minify/src'],
|
||||
];
|
||||
66
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_real.php
vendored
Normal file
66
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_real.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitc9c410f933e0df798c52abcbe3ffb58d
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
public static function loadClassLoader($class)
|
||||
{
|
||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||
require __DIR__.'/ClassLoader.php';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Composer\Autoload\ClassLoader
|
||||
*/
|
||||
public static function getLoader()
|
||||
{
|
||||
if (null !== self::$loader) {
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
require __DIR__.'/platform_check.php';
|
||||
|
||||
spl_autoload_register(['ComposerAutoloaderInitc9c410f933e0df798c52abcbe3ffb58d', 'loadClassLoader'], true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(['ComposerAutoloaderInitc9c410f933e0df798c52abcbe3ffb58d', 'loadClassLoader']);
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__.'/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__.'/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
$loader->addClassMap($classMap);
|
||||
}
|
||||
}
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__.'/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirec9c410f933e0df798c52abcbe3ffb58d($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirec9c410f933e0df798c52abcbe3ffb58d($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
}
|
||||
}
|
||||
968
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_static.php
vendored
Normal file
968
administrator/components/com_jchoptimize/lib/vendor/composer/autoload_static.php
vendored
Normal file
@@ -0,0 +1,968 @@
|
||||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d
|
||||
{
|
||||
public static $files = [
|
||||
'e4fb59bbac7337935dfbb596217f40f060799491728b879e74601d83e38b2cad' => __DIR__.'/../illuminate/collections/helpers.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f072579e7bd17821bb1321b87411366eae' => __DIR__.'/../illuminate/support/helpers.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0c9d07b32a2e02bc0fc582d4f0c1b56cc' => __DIR__.'/../laminas/laminas-servicemanager/src/autoload.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f06e3fae29631ef280660b3cdad06f25a8' => __DIR__.'/../symfony/deprecation-contracts/function.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0ef65a1626449d89d0811cf9befce46f0' => __DIR__.'/../illuminate/events/functions.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f07b11c4dc42b3b3023073cb14e519683c' => __DIR__.'/../ralouphie/getallheaders/src/getallheaders.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__.'/../guzzlehttp/psr7/src/functions_include.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0c964ee0ededf28c96ebd9db5099ef910' => __DIR__.'/../guzzlehttp/promises/src/functions_include.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f00e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__.'/../symfony/polyfill-mbstring/bootstrap.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f0a4a119a56e50fbb293281d9a48007e0e' => __DIR__.'/../symfony/polyfill-php80/bootstrap.php',
|
||||
'e4fb59bbac7337935dfbb596217f40f037a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__.'/../guzzlehttp/guzzle/src/functions_include.php',
|
||||
];
|
||||
|
||||
public static $prefixLengthsPsr4 = [
|
||||
'_' => [
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\' => 36,
|
||||
'_JchOptimizeVendor\\Tree\\' => 24,
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\' => 42,
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Mbstring\\' => 45,
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\' => 48,
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\' => 33,
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\' => 34,
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\' => 36,
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\' => 35,
|
||||
'_JchOptimizeVendor\\Psr\\Container\\' => 33,
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\' => 34,
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\' => 42,
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\' => 38,
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\' => 37,
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\' => 32,
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\' => 40,
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\' => 49,
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\' => 33,
|
||||
'_JchOptimizeVendor\\Joomla\\View\\' => 31,
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\' => 35,
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\' => 32,
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\' => 29,
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\' => 37,
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\' => 35,
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\' => 38,
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\' => 39,
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\' => 41,
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\' => 37,
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\' => 40,
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\' => 40,
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\' => 34,
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\' => 35,
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\' => 38,
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\' => 30,
|
||||
'_JchOptimizeVendor\\Composer\\CaBundle\\' => 37,
|
||||
],
|
||||
'J' => [
|
||||
'Joomla\\Database\\' => 16,
|
||||
'JchOptimize\\' => 12,
|
||||
],
|
||||
'C' => [
|
||||
'CodeAlfa\\RegexTokenizer\\' => 24,
|
||||
'CodeAlfa\\Minify\\' => 16,
|
||||
],
|
||||
];
|
||||
|
||||
public static $prefixDirsPsr4 = [
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\' => [
|
||||
0 => __DIR__.'/../webmozart/assert/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Tree\\' => [
|
||||
0 => __DIR__.'/../nicmart/tree/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\' => [
|
||||
0 => __DIR__.'/../symfony/polyfill-php80',
|
||||
],
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Mbstring\\' => [
|
||||
0 => __DIR__.'/../symfony/polyfill-mbstring',
|
||||
],
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\' => [
|
||||
0 => __DIR__.'/../symfony/dom-crawler',
|
||||
],
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\' => [
|
||||
0 => __DIR__.'/../spatie/robots-txt/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\' => [
|
||||
0 => __DIR__.'/../spatie/crawler/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\' => [
|
||||
0 => __DIR__.'/../psr/http-message/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\' => [
|
||||
0 => __DIR__.'/../psr/http-client/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Psr\\Container\\' => [
|
||||
0 => __DIR__.'/../psr/container/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-stdlib/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-servicemanager/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-serializer/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-paginator/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-json/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-eventmanager/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src',
|
||||
1 => __DIR__.'/../laminas/laminas-cache-storage-adapter-blackhole/src',
|
||||
2 => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src',
|
||||
3 => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src',
|
||||
4 => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src',
|
||||
5 => __DIR__.'/../laminas/laminas-cache-storage-adapter-wincache/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\' => [
|
||||
0 => __DIR__.'/../laminas/laminas-cache/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Joomla\\View\\' => [
|
||||
0 => __DIR__.'/../joomla/view/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\' => [
|
||||
0 => __DIR__.'/../joomla/renderer/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\' => [
|
||||
0 => __DIR__.'/../joomla/model/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\' => [
|
||||
0 => __DIR__.'/../joomla/di/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\' => [
|
||||
0 => __DIR__.'/../joomla/controller/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\' => [
|
||||
0 => __DIR__.'/../illuminate/view',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\' => [
|
||||
0 => __DIR__.'/../illuminate/collections',
|
||||
1 => __DIR__.'/../illuminate/macroable',
|
||||
2 => __DIR__.'/../illuminate/support',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\' => [
|
||||
0 => __DIR__.'/../illuminate/pipeline',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\' => [
|
||||
0 => __DIR__.'/../illuminate/filesystem',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\' => [
|
||||
0 => __DIR__.'/../illuminate/events',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\' => [
|
||||
0 => __DIR__.'/../illuminate/contracts',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\' => [
|
||||
0 => __DIR__.'/../illuminate/container',
|
||||
],
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\' => [
|
||||
0 => __DIR__.'/../illuminate/bus',
|
||||
],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\' => [
|
||||
0 => __DIR__.'/../guzzlehttp/psr7/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\' => [
|
||||
0 => __DIR__.'/../guzzlehttp/promises/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\' => [
|
||||
0 => __DIR__.'/../guzzlehttp/guzzle/src',
|
||||
],
|
||||
'_JchOptimizeVendor\\Composer\\CaBundle\\' => [
|
||||
0 => __DIR__.'/../composer/ca-bundle/src',
|
||||
],
|
||||
'Joomla\\Database\\' => [
|
||||
0 => __DIR__.'/../joomla/database/src',
|
||||
],
|
||||
'JchOptimize\\' => [
|
||||
0 => __DIR__.'/../../src',
|
||||
],
|
||||
'CodeAlfa\\RegexTokenizer\\' => [
|
||||
0 => __DIR__.'/../codealfa/regextokenizer/src',
|
||||
],
|
||||
'CodeAlfa\\Minify\\' => [
|
||||
0 => __DIR__.'/../codealfa/minify/src',
|
||||
],
|
||||
];
|
||||
|
||||
public static $classMap = [
|
||||
'CodeAlfa\\Minify\\Base' => __DIR__.'/../codealfa/minify/src/Base.php',
|
||||
'CodeAlfa\\Minify\\Css' => __DIR__.'/../codealfa/minify/src/Css.php',
|
||||
'CodeAlfa\\Minify\\Html' => __DIR__.'/../codealfa/minify/src/Html.php',
|
||||
'CodeAlfa\\Minify\\Js' => __DIR__.'/../codealfa/minify/src/Js.php',
|
||||
'CodeAlfa\\Minify\\Json' => __DIR__.'/../codealfa/minify/src/Json.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Base' => __DIR__.'/../codealfa/regextokenizer/src/Base.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Css' => __DIR__.'/../codealfa/regextokenizer/src/Css.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Debug\\Debug' => __DIR__.'/../codealfa/regextokenizer/src/Debug/Debug.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Html' => __DIR__.'/../codealfa/regextokenizer/src/Html.php',
|
||||
'CodeAlfa\\RegexTokenizer\\Js' => __DIR__.'/../codealfa/regextokenizer/src/Js.php',
|
||||
'Composer\\InstalledVersions' => __DIR__.'/../composer/InstalledVersions.php',
|
||||
'JchOptimize\\Command\\ReCache' => __DIR__.'/../../src/Command/ReCache.php',
|
||||
'JchOptimize\\ContainerFactory' => __DIR__.'/../../src/ContainerFactory.php',
|
||||
'JchOptimize\\ControllerResolver' => __DIR__.'/../../src/ControllerResolver.php',
|
||||
'JchOptimize\\Controller\\Ajax' => __DIR__.'/../../src/Controller/Ajax.php',
|
||||
'JchOptimize\\Controller\\ApplyAutoSetting' => __DIR__.'/../../src/Controller/ApplyAutoSetting.php',
|
||||
'JchOptimize\\Controller\\CacheInfo' => __DIR__.'/../../src/Controller/CacheInfo.php',
|
||||
'JchOptimize\\Controller\\ControlPanel' => __DIR__.'/../../src/Controller/ControlPanel.php',
|
||||
'JchOptimize\\Controller\\ModeSwitcher' => __DIR__.'/../../src/Controller/ModeSwitcher.php',
|
||||
'JchOptimize\\Controller\\OptimizeImage' => __DIR__.'/../../src/Controller/OptimizeImage.php',
|
||||
'JchOptimize\\Controller\\OptimizeImages' => __DIR__.'/../../src/Controller/OptimizeImages.php',
|
||||
'JchOptimize\\Controller\\PageCache' => __DIR__.'/../../src/Controller/PageCache.php',
|
||||
'JchOptimize\\Controller\\ToggleSetting' => __DIR__.'/../../src/Controller/ToggleSetting.php',
|
||||
'JchOptimize\\Controller\\Utility' => __DIR__.'/../../src/Controller/Utility.php',
|
||||
'JchOptimize\\Core\\Admin\\AbstractHtml' => __DIR__.'/../../src/Core/Admin/AbstractHtml.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\Ajax' => __DIR__.'/../../src/Core/Admin/Ajax/Ajax.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\FileTree' => __DIR__.'/../../src/Core/Admin/Ajax/FileTree.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\MultiSelect' => __DIR__.'/../../src/Core/Admin/Ajax/MultiSelect.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\OptimizeImage' => __DIR__.'/../../src/Core/Admin/Ajax/OptimizeImage.php',
|
||||
'JchOptimize\\Core\\Admin\\Ajax\\SmartCombine' => __DIR__.'/../../src/Core/Admin/Ajax/SmartCombine.php',
|
||||
'JchOptimize\\Core\\Admin\\Helper' => __DIR__.'/../../src/Core/Admin/Helper.php',
|
||||
'JchOptimize\\Core\\Admin\\Icons' => __DIR__.'/../../src/Core/Admin/Icons.php',
|
||||
'JchOptimize\\Core\\Admin\\ImageUploader' => __DIR__.'/../../src/Core/Admin/ImageUploader.php',
|
||||
'JchOptimize\\Core\\Admin\\Json' => __DIR__.'/../../src/Core/Admin/Json.php',
|
||||
'JchOptimize\\Core\\Admin\\MultiSelectItems' => __DIR__.'/../../src/Core/Admin/MultiSelectItems.php',
|
||||
'JchOptimize\\Core\\Admin\\Tasks' => __DIR__.'/../../src/Core/Admin/Tasks.php',
|
||||
'JchOptimize\\Core\\Browser' => __DIR__.'/../../src/Core/Browser.php',
|
||||
'JchOptimize\\Core\\Cdn' => __DIR__.'/../../src/Core/Cdn.php',
|
||||
'JchOptimize\\Core\\Combiner' => __DIR__.'/../../src/Core/Combiner.php',
|
||||
'JchOptimize\\Core\\Container\\AbstractContainerFactory' => __DIR__.'/../../src/Core/Container/AbstractContainerFactory.php',
|
||||
'JchOptimize\\Core\\Container\\Container' => __DIR__.'/../../src/Core/Container/Container.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\AbstractCallback' => __DIR__.'/../../src/Core/Css/Callbacks/AbstractCallback.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\CombineMediaQueries' => __DIR__.'/../../src/Core/Css/Callbacks/CombineMediaQueries.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\CorrectUrls' => __DIR__.'/../../src/Core/Css/Callbacks/CorrectUrls.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\ExtractCriticalCss' => __DIR__.'/../../src/Core/Css/Callbacks/ExtractCriticalCss.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\FormatCss' => __DIR__.'/../../src/Core/Css/Callbacks/FormatCss.php',
|
||||
'JchOptimize\\Core\\Css\\Callbacks\\HandleAtRules' => __DIR__.'/../../src/Core/Css/Callbacks/HandleAtRules.php',
|
||||
'JchOptimize\\Core\\Css\\CssSearchObject' => __DIR__.'/../../src/Core/Css/CssSearchObject.php',
|
||||
'JchOptimize\\Core\\Css\\Parser' => __DIR__.'/../../src/Core/Css/Parser.php',
|
||||
'JchOptimize\\Core\\Css\\Processor' => __DIR__.'/../../src/Core/Css/Processor.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Controller' => __DIR__.'/../../src/Core/Css/Sprite/Controller.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Generator' => __DIR__.'/../../src/Core/Css/Sprite/Generator.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\HandlerInterface' => __DIR__.'/../../src/Core/Css/Sprite/HandlerInterface.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\AbstractHandler' => __DIR__.'/../../src/Core/Css/Sprite/Handler/AbstractHandler.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\Gd' => __DIR__.'/../../src/Core/Css/Sprite/Handler/Gd.php',
|
||||
'JchOptimize\\Core\\Css\\Sprite\\Handler\\Imagick' => __DIR__.'/../../src/Core/Css/Sprite/Handler/Imagick.php',
|
||||
'JchOptimize\\Core\\Debugger' => __DIR__.'/../../src/Core/Debugger.php',
|
||||
'JchOptimize\\Core\\Exception\\ExceptionInterface' => __DIR__.'/../../src/Core/Exception/ExceptionInterface.php',
|
||||
'JchOptimize\\Core\\Exception\\ExcludeException' => __DIR__.'/../../src/Core/Exception/ExcludeException.php',
|
||||
'JchOptimize\\Core\\Exception\\InvalidArgumentException' => __DIR__.'/../../src/Core/Exception/InvalidArgumentException.php',
|
||||
'JchOptimize\\Core\\Exception\\MissingDependencyException' => __DIR__.'/../../src/Core/Exception/MissingDependencyException.php',
|
||||
'JchOptimize\\Core\\Exception\\PregErrorException' => __DIR__.'/../../src/Core/Exception/PregErrorException.php',
|
||||
'JchOptimize\\Core\\Exception\\RuntimeException' => __DIR__.'/../../src/Core/Exception/RuntimeException.php',
|
||||
'JchOptimize\\Core\\Exception\\StringableTrait' => __DIR__.'/../../src/Core/Exception/StringableTrait.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\AbstractFeatureHelper' => __DIR__.'/../../src/Core/FeatureHelpers/AbstractFeatureHelper.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\CdnDomains' => __DIR__.'/../../src/Core/FeatureHelpers/CdnDomains.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\DynamicJs' => __DIR__.'/../../src/Core/FeatureHelpers/DynamicJs.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\DynamicSelectors' => __DIR__.'/../../src/Core/FeatureHelpers/DynamicSelectors.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Fonts' => __DIR__.'/../../src/Core/FeatureHelpers/Fonts.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Http2Excludes' => __DIR__.'/../../src/Core/FeatureHelpers/Http2Excludes.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\LazyLoadExtended' => __DIR__.'/../../src/Core/FeatureHelpers/LazyLoadExtended.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\ReduceDom' => __DIR__.'/../../src/Core/FeatureHelpers/ReduceDom.php',
|
||||
'JchOptimize\\Core\\FeatureHelpers\\Webp' => __DIR__.'/../../src/Core/FeatureHelpers/Webp.php',
|
||||
'JchOptimize\\Core\\FileInfosUtilsTrait' => __DIR__.'/../../src/Core/FileInfosUtilsTrait.php',
|
||||
'JchOptimize\\Core\\FileUtils' => __DIR__.'/../../src/Core/FileUtils.php',
|
||||
'JchOptimize\\Core\\Helper' => __DIR__.'/../../src/Core/Helper.php',
|
||||
'JchOptimize\\Core\\Htaccess' => __DIR__.'/../../src/Core/Htaccess.php',
|
||||
'JchOptimize\\Core\\Html\\AsyncManager' => __DIR__.'/../../src/Core/Html/AsyncManager.php',
|
||||
'JchOptimize\\Core\\Html\\CacheManager' => __DIR__.'/../../src/Core/Html/CacheManager.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\AbstractCallback' => __DIR__.'/../../src/Core/Html/Callbacks/AbstractCallback.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\Cdn' => __DIR__.'/../../src/Core/Html/Callbacks/Cdn.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\CombineJsCss' => __DIR__.'/../../src/Core/Html/Callbacks/CombineJsCss.php',
|
||||
'JchOptimize\\Core\\Html\\Callbacks\\LazyLoad' => __DIR__.'/../../src/Core/Html/Callbacks/LazyLoad.php',
|
||||
'JchOptimize\\Core\\Html\\ElementObject' => __DIR__.'/../../src/Core/Html/ElementObject.php',
|
||||
'JchOptimize\\Core\\Html\\FilesManager' => __DIR__.'/../../src/Core/Html/FilesManager.php',
|
||||
'JchOptimize\\Core\\Html\\LinkBuilder' => __DIR__.'/../../src/Core/Html/LinkBuilder.php',
|
||||
'JchOptimize\\Core\\Html\\Parser' => __DIR__.'/../../src/Core/Html/Parser.php',
|
||||
'JchOptimize\\Core\\Html\\Processor' => __DIR__.'/../../src/Core/Html/Processor.php',
|
||||
'JchOptimize\\Core\\Http2Preload' => __DIR__.'/../../src/Core/Http2Preload.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Cache' => __DIR__.'/../../src/Core/Interfaces/Cache.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Excludes' => __DIR__.'/../../src/Core/Interfaces/Excludes.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Hooks' => __DIR__.'/../../src/Core/Interfaces/Hooks.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Html' => __DIR__.'/../../src/Core/Interfaces/Html.php',
|
||||
'JchOptimize\\Core\\Interfaces\\MvcLoggerInterface' => __DIR__.'/../../src/Core/Interfaces/MvcLoggerInterface.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Paths' => __DIR__.'/../../src/Core/Interfaces/Paths.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Plugin' => __DIR__.'/../../src/Core/Interfaces/Plugin.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Profiler' => __DIR__.'/../../src/Core/Interfaces/Profiler.php',
|
||||
'JchOptimize\\Core\\Interfaces\\Utility' => __DIR__.'/../../src/Core/Interfaces/Utility.php',
|
||||
'JchOptimize\\Core\\Laminas\\Plugins\\ClearExpiredByFactor' => __DIR__.'/../../src/Core/Laminas/Plugins/ClearExpiredByFactor.php',
|
||||
'JchOptimize\\Core\\Laminas\\Plugins\\ExceptionHandler' => __DIR__.'/../../src/Core/Laminas/Plugins/ExceptionHandler.php',
|
||||
'JchOptimize\\Core\\Model\\CacheModelTrait' => __DIR__.'/../../src/Core/Model/CacheModelTrait.php',
|
||||
'JchOptimize\\Core\\Optimize' => __DIR__.'/../../src/Core/Optimize.php',
|
||||
'JchOptimize\\Core\\Output' => __DIR__.'/../../src/Core/Output.php',
|
||||
'JchOptimize\\Core\\PageCache\\CaptureCache' => __DIR__.'/../../src/Core/PageCache/CaptureCache.php',
|
||||
'JchOptimize\\Core\\PageCache\\PageCache' => __DIR__.'/../../src/Core/PageCache/PageCache.php',
|
||||
'JchOptimize\\Core\\SerializableTrait' => __DIR__.'/../../src/Core/SerializableTrait.php',
|
||||
'JchOptimize\\Core\\Service\\CachingConfigurationProvider' => __DIR__.'/../../src/Core/Service/CachingConfigurationProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CachingProvider' => __DIR__.'/../../src/Core/Service/CachingProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CallbackProvider' => __DIR__.'/../../src/Core/Service/CallbackProvider.php',
|
||||
'JchOptimize\\Core\\Service\\CoreProvider' => __DIR__.'/../../src/Core/Service/CoreProvider.php',
|
||||
'JchOptimize\\Core\\Service\\FeatureHelpersProvider' => __DIR__.'/../../src/Core/Service/FeatureHelpersProvider.php',
|
||||
'JchOptimize\\Core\\Service\\IlluminateViewFactoryProvider' => __DIR__.'/../../src/Core/Service/IlluminateViewFactoryProvider.php',
|
||||
'JchOptimize\\Core\\Service\\SpatieProvider' => __DIR__.'/../../src/Core/Service/SpatieProvider.php',
|
||||
'JchOptimize\\Core\\Spatie\\CrawlQueues\\CacheCrawlQueue' => __DIR__.'/../../src/Core/Spatie/CrawlQueues/CacheCrawlQueue.php',
|
||||
'JchOptimize\\Core\\Spatie\\CrawlQueues\\NonOptimizedCacheCrawlQueue' => __DIR__.'/../../src/Core/Spatie/CrawlQueues/NonOptimizedCacheCrawlQueue.php',
|
||||
'JchOptimize\\Core\\Spatie\\Crawlers\\HtmlCollector' => __DIR__.'/../../src/Core/Spatie/Crawlers/HtmlCollector.php',
|
||||
'JchOptimize\\Core\\StorageTaggingTrait' => __DIR__.'/../../src/Core/StorageTaggingTrait.php',
|
||||
'JchOptimize\\Core\\SystemUri' => __DIR__.'/../../src/Core/SystemUri.php',
|
||||
'JchOptimize\\Core\\Uri\\UriComparator' => __DIR__.'/../../src/Core/Uri/UriComparator.php',
|
||||
'JchOptimize\\Core\\Uri\\UriConverter' => __DIR__.'/../../src/Core/Uri/UriConverter.php',
|
||||
'JchOptimize\\Core\\Uri\\UriNormalizer' => __DIR__.'/../../src/Core/Uri/UriNormalizer.php',
|
||||
'JchOptimize\\Core\\Uri\\Utils' => __DIR__.'/../../src/Core/Uri/Utils.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheCli' => __DIR__.'/../../src/Crawlers/ReCacheCli.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheCliJ3' => __DIR__.'/../../src/Crawlers/ReCacheCliJ3.php',
|
||||
'JchOptimize\\Crawlers\\ReCacheWithRedirect' => __DIR__.'/../../src/Crawlers/ReCacheWithRedirect.php',
|
||||
'JchOptimize\\GetApplicationTrait' => __DIR__.'/../../src/GetApplicationTrait.php',
|
||||
'JchOptimize\\Helper\\CacheCleaner' => __DIR__.'/../../src/Helper/CacheCleaner.php',
|
||||
'JchOptimize\\Helper\\OptimizeImage' => __DIR__.'/../../src/Helper/OptimizeImage.php',
|
||||
'JchOptimize\\Joomla\\Database\\Database' => __DIR__.'/../../src/Joomla/Database/Database.php',
|
||||
'JchOptimize\\Joomla\\Plugin\\PluginHelper' => __DIR__.'/../../src/Joomla/Plugin/PluginHelper.php',
|
||||
'JchOptimize\\Log\\DelegatingPsrLoggerExtended' => __DIR__.'/../../src/Log/DelegatingPsrLoggerExtended.php',
|
||||
'JchOptimize\\Log\\JoomlaLogger' => __DIR__.'/../../src/Log/JoomlaLogger.php',
|
||||
'JchOptimize\\Model\\ApiParams' => __DIR__.'/../../src/Model/ApiParams.php',
|
||||
'JchOptimize\\Model\\BulkSettings' => __DIR__.'/../../src/Model/BulkSettings.php',
|
||||
'JchOptimize\\Model\\Cache' => __DIR__.'/../../src/Model/Cache.php',
|
||||
'JchOptimize\\Model\\Configure' => __DIR__.'/../../src/Model/Configure.php',
|
||||
'JchOptimize\\Model\\ModeSwitcher' => __DIR__.'/../../src/Model/ModeSwitcher.php',
|
||||
'JchOptimize\\Model\\OrderPlugins' => __DIR__.'/../../src/Model/OrderPlugins.php',
|
||||
'JchOptimize\\Model\\PageCache' => __DIR__.'/../../src/Model/PageCache.php',
|
||||
'JchOptimize\\Model\\ReCache' => __DIR__.'/../../src/Model/ReCache.php',
|
||||
'JchOptimize\\Model\\ReCacheCliJ3' => __DIR__.'/../../src/Model/ReCacheCliJ3.php',
|
||||
'JchOptimize\\Model\\SaveSettingsTrait' => __DIR__.'/../../src/Model/SaveSettingsTrait.php',
|
||||
'JchOptimize\\Model\\TogglePlugins' => __DIR__.'/../../src/Model/TogglePlugins.php',
|
||||
'JchOptimize\\Model\\Updates' => __DIR__.'/../../src/Model/Updates.php',
|
||||
'JchOptimize\\Platform\\Cache' => __DIR__.'/../../src/Platform/Cache.php',
|
||||
'JchOptimize\\Platform\\Excludes' => __DIR__.'/../../src/Platform/Excludes.php',
|
||||
'JchOptimize\\Platform\\Hooks' => __DIR__.'/../../src/Platform/Hooks.php',
|
||||
'JchOptimize\\Platform\\Html' => __DIR__.'/../../src/Platform/Html.php',
|
||||
'JchOptimize\\Platform\\Paths' => __DIR__.'/../../src/Platform/Paths.php',
|
||||
'JchOptimize\\Platform\\Plugin' => __DIR__.'/../../src/Platform/Plugin.php',
|
||||
'JchOptimize\\Platform\\Profiler' => __DIR__.'/../../src/Platform/Profiler.php',
|
||||
'JchOptimize\\Platform\\Utility' => __DIR__.'/../../src/Platform/Utility.php',
|
||||
'JchOptimize\\Service\\ConfigurationProvider' => __DIR__.'/../../src/Service/ConfigurationProvider.php',
|
||||
'JchOptimize\\Service\\DatabaseProvider' => __DIR__.'/../../src/Service/DatabaseProvider.php',
|
||||
'JchOptimize\\Service\\LoggerProvider' => __DIR__.'/../../src/Service/LoggerProvider.php',
|
||||
'JchOptimize\\Service\\ModeSwitcherProvider' => __DIR__.'/../../src/Service/ModeSwitcherProvider.php',
|
||||
'JchOptimize\\Service\\MvcProvider' => __DIR__.'/../../src/Service/MvcProvider.php',
|
||||
'JchOptimize\\Service\\ReCacheProvider' => __DIR__.'/../../src/Service/ReCacheProvider.php',
|
||||
'JchOptimize\\View\\ControlPanelHtml' => __DIR__.'/../../src/View/ControlPanelHtml.php',
|
||||
'JchOptimize\\View\\OptimizeImagesHtml' => __DIR__.'/../../src/View/OptimizeImagesHtml.php',
|
||||
'JchOptimize\\View\\PageCacheHtml' => __DIR__.'/../../src/View/PageCacheHtml.php',
|
||||
'Joomla\\Database\\DatabaseInterface' => __DIR__.'/../joomla/database/src/DatabaseInterface.php',
|
||||
'_JchOptimizeVendor\\Attribute' => __DIR__.'/../symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
||||
'_JchOptimizeVendor\\Composer\\CaBundle\\CaBundle' => __DIR__.'/../composer/ca-bundle/src/CaBundle.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\BodySummarizer' => __DIR__.'/../guzzlehttp/guzzle/src/BodySummarizer.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\BodySummarizerInterface' => __DIR__.'/../guzzlehttp/guzzle/src/BodySummarizerInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Client' => __DIR__.'/../guzzlehttp/guzzle/src/Client.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\ClientInterface' => __DIR__.'/../guzzlehttp/guzzle/src/ClientInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\ClientTrait' => __DIR__.'/../guzzlehttp/guzzle/src/ClientTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\CookieJar' => __DIR__.'/../guzzlehttp/guzzle/src/Cookie/CookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__.'/../guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__.'/../guzzlehttp/guzzle/src/Cookie/FileCookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__.'/../guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Cookie\\SetCookie' => __DIR__.'/../guzzlehttp/guzzle/src/Cookie/SetCookie.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\BadResponseException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/BadResponseException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ClientException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/ClientException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ConnectException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/ConnectException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\GuzzleException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/GuzzleException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\InvalidArgumentException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\RequestException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/RequestException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\ServerException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/ServerException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Exception\\TransferException' => __DIR__.'/../guzzlehttp/guzzle/src/Exception/TransferException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\HandlerStack' => __DIR__.'/../guzzlehttp/guzzle/src/HandlerStack.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlFactory' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/CurlFactory.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlHandler' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/CurlHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\EasyHandle' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/EasyHandle.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\HeaderProcessor' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/HeaderProcessor.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\MockHandler' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/MockHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\Proxy' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/Proxy.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Handler\\StreamHandler' => __DIR__.'/../guzzlehttp/guzzle/src/Handler/StreamHandler.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\MessageFormatter' => __DIR__.'/../guzzlehttp/guzzle/src/MessageFormatter.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\MessageFormatterInterface' => __DIR__.'/../guzzlehttp/guzzle/src/MessageFormatterInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Middleware' => __DIR__.'/../guzzlehttp/guzzle/src/Middleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Pool' => __DIR__.'/../guzzlehttp/guzzle/src/Pool.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\PrepareBodyMiddleware' => __DIR__.'/../guzzlehttp/guzzle/src/PrepareBodyMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\AggregateException' => __DIR__.'/../guzzlehttp/promises/src/AggregateException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\CancellationException' => __DIR__.'/../guzzlehttp/promises/src/CancellationException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Coroutine' => __DIR__.'/../guzzlehttp/promises/src/Coroutine.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Create' => __DIR__.'/../guzzlehttp/promises/src/Create.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Each' => __DIR__.'/../guzzlehttp/promises/src/Each.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\EachPromise' => __DIR__.'/../guzzlehttp/promises/src/EachPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__.'/../guzzlehttp/promises/src/FulfilledPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Is' => __DIR__.'/../guzzlehttp/promises/src/Is.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Promise' => __DIR__.'/../guzzlehttp/promises/src/Promise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\PromiseInterface' => __DIR__.'/../guzzlehttp/promises/src/PromiseInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\PromisorInterface' => __DIR__.'/../guzzlehttp/promises/src/PromisorInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\RejectedPromise' => __DIR__.'/../guzzlehttp/promises/src/RejectedPromise.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\RejectionException' => __DIR__.'/../guzzlehttp/promises/src/RejectionException.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\TaskQueue' => __DIR__.'/../guzzlehttp/promises/src/TaskQueue.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__.'/../guzzlehttp/promises/src/TaskQueueInterface.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Promise\\Utils' => __DIR__.'/../guzzlehttp/promises/src/Utils.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\AppendStream' => __DIR__.'/../guzzlehttp/psr7/src/AppendStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\BufferStream' => __DIR__.'/../guzzlehttp/psr7/src/BufferStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\CachingStream' => __DIR__.'/../guzzlehttp/psr7/src/CachingStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\DroppingStream' => __DIR__.'/../guzzlehttp/psr7/src/DroppingStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\FnStream' => __DIR__.'/../guzzlehttp/psr7/src/FnStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Header' => __DIR__.'/../guzzlehttp/psr7/src/Header.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\InflateStream' => __DIR__.'/../guzzlehttp/psr7/src/InflateStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__.'/../guzzlehttp/psr7/src/LazyOpenStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\LimitStream' => __DIR__.'/../guzzlehttp/psr7/src/LimitStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Message' => __DIR__.'/../guzzlehttp/psr7/src/Message.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MessageTrait' => __DIR__.'/../guzzlehttp/psr7/src/MessageTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MimeType' => __DIR__.'/../guzzlehttp/psr7/src/MimeType.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\MultipartStream' => __DIR__.'/../guzzlehttp/psr7/src/MultipartStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__.'/../guzzlehttp/psr7/src/NoSeekStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\PumpStream' => __DIR__.'/../guzzlehttp/psr7/src/PumpStream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Query' => __DIR__.'/../guzzlehttp/psr7/src/Query.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Request' => __DIR__.'/../guzzlehttp/psr7/src/Request.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Response' => __DIR__.'/../guzzlehttp/psr7/src/Response.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Rfc7230' => __DIR__.'/../guzzlehttp/psr7/src/Rfc7230.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\ServerRequest' => __DIR__.'/../guzzlehttp/psr7/src/ServerRequest.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Stream' => __DIR__.'/../guzzlehttp/psr7/src/Stream.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__.'/../guzzlehttp/psr7/src/StreamDecoratorTrait.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__.'/../guzzlehttp/psr7/src/StreamWrapper.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UploadedFile' => __DIR__.'/../guzzlehttp/psr7/src/UploadedFile.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Uri' => __DIR__.'/../guzzlehttp/psr7/src/Uri.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriComparator' => __DIR__.'/../guzzlehttp/psr7/src/UriComparator.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__.'/../guzzlehttp/psr7/src/UriNormalizer.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\UriResolver' => __DIR__.'/../guzzlehttp/psr7/src/UriResolver.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Psr7\\Utils' => __DIR__.'/../guzzlehttp/psr7/src/Utils.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RedirectMiddleware' => __DIR__.'/../guzzlehttp/guzzle/src/RedirectMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RequestOptions' => __DIR__.'/../guzzlehttp/guzzle/src/RequestOptions.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\RetryMiddleware' => __DIR__.'/../guzzlehttp/guzzle/src/RetryMiddleware.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\TransferStats' => __DIR__.'/../guzzlehttp/guzzle/src/TransferStats.php',
|
||||
'_JchOptimizeVendor\\GuzzleHttp\\Utils' => __DIR__.'/../guzzlehttp/guzzle/src/Utils.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Batch' => __DIR__.'/../illuminate/bus/Batch.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BatchFactory' => __DIR__.'/../illuminate/bus/BatchFactory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BatchRepository' => __DIR__.'/../illuminate/bus/BatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Batchable' => __DIR__.'/../illuminate/bus/Batchable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\BusServiceProvider' => __DIR__.'/../illuminate/bus/BusServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\DatabaseBatchRepository' => __DIR__.'/../illuminate/bus/DatabaseBatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Dispatcher' => __DIR__.'/../illuminate/bus/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Events\\BatchDispatched' => __DIR__.'/../illuminate/bus/Events/BatchDispatched.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\PendingBatch' => __DIR__.'/../illuminate/bus/PendingBatch.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\PrunableBatchRepository' => __DIR__.'/../illuminate/bus/PrunableBatchRepository.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\Queueable' => __DIR__.'/../illuminate/bus/Queueable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\UniqueLock' => __DIR__.'/../illuminate/bus/UniqueLock.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Bus\\UpdatedBatchJobCounts' => __DIR__.'/../illuminate/bus/UpdatedBatchJobCounts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\BoundMethod' => __DIR__.'/../illuminate/container/BoundMethod.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\Container' => __DIR__.'/../illuminate/container/Container.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\ContextualBindingBuilder' => __DIR__.'/../illuminate/container/ContextualBindingBuilder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\EntryNotFoundException' => __DIR__.'/../illuminate/container/EntryNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\RewindableGenerator' => __DIR__.'/../illuminate/container/RewindableGenerator.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Container\\Util' => __DIR__.'/../illuminate/container/Util.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\BindingResolutionException' => __DIR__.'/../illuminate/contracts/Container/BindingResolutionException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\CircularDependencyException' => __DIR__.'/../illuminate/contracts/Container/CircularDependencyException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\Container' => __DIR__.'/../illuminate/contracts/Container/Container.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Container\\ContextualBindingBuilder' => __DIR__.'/../illuminate/contracts/Container/ContextualBindingBuilder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Events\\Dispatcher' => __DIR__.'/../illuminate/contracts/Events/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Arrayable' => __DIR__.'/../illuminate/contracts/Support/Arrayable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\CanBeEscapedWhenCastToString' => __DIR__.'/../illuminate/contracts/Support/CanBeEscapedWhenCastToString.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\DeferrableProvider' => __DIR__.'/../illuminate/contracts/Support/DeferrableProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\DeferringDisplayableValue' => __DIR__.'/../illuminate/contracts/Support/DeferringDisplayableValue.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Htmlable' => __DIR__.'/../illuminate/contracts/Support/Htmlable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Jsonable' => __DIR__.'/../illuminate/contracts/Support/Jsonable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\MessageBag' => __DIR__.'/../illuminate/contracts/Support/MessageBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\MessageProvider' => __DIR__.'/../illuminate/contracts/Support/MessageProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Renderable' => __DIR__.'/../illuminate/contracts/Support/Renderable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\Responsable' => __DIR__.'/../illuminate/contracts/Support/Responsable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\Support\\ValidatedData' => __DIR__.'/../illuminate/contracts/Support/ValidatedData.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\Engine' => __DIR__.'/../illuminate/contracts/View/Engine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\Factory' => __DIR__.'/../illuminate/contracts/View/Factory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Contracts\\View\\View' => __DIR__.'/../illuminate/contracts/View/View.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\CallQueuedListener' => __DIR__.'/../illuminate/events/CallQueuedListener.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\Dispatcher' => __DIR__.'/../illuminate/events/Dispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\EventServiceProvider' => __DIR__.'/../illuminate/events/EventServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\InvokeQueuedClosure' => __DIR__.'/../illuminate/events/InvokeQueuedClosure.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\NullDispatcher' => __DIR__.'/../illuminate/events/NullDispatcher.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Events\\QueuedClosure' => __DIR__.'/../illuminate/events/QueuedClosure.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\Cache' => __DIR__.'/../illuminate/filesystem/Cache.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\Filesystem' => __DIR__.'/../illuminate/filesystem/Filesystem.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemAdapter' => __DIR__.'/../illuminate/filesystem/FilesystemAdapter.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemManager' => __DIR__.'/../illuminate/filesystem/FilesystemManager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\FilesystemServiceProvider' => __DIR__.'/../illuminate/filesystem/FilesystemServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Filesystem\\LockableFile' => __DIR__.'/../illuminate/filesystem/LockableFile.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\Hub' => __DIR__.'/../illuminate/pipeline/Hub.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\Pipeline' => __DIR__.'/../illuminate/pipeline/Pipeline.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Pipeline\\PipelineServiceProvider' => __DIR__.'/../illuminate/pipeline/PipelineServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\AggregateServiceProvider' => __DIR__.'/../illuminate/support/AggregateServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Arr' => __DIR__.'/../illuminate/collections/Arr.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Carbon' => __DIR__.'/../illuminate/support/Carbon.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Collection' => __DIR__.'/../illuminate/collections/Collection.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Composer' => __DIR__.'/../illuminate/support/Composer.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ConfigurationUrlParser' => __DIR__.'/../illuminate/support/ConfigurationUrlParser.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\DateFactory' => __DIR__.'/../illuminate/support/DateFactory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Enumerable' => __DIR__.'/../illuminate/collections/Enumerable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Env' => __DIR__.'/../illuminate/support/Env.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Fluent' => __DIR__.'/../illuminate/support/Fluent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderCollectionProxy' => __DIR__.'/../illuminate/collections/HigherOrderCollectionProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderTapProxy' => __DIR__.'/../illuminate/support/HigherOrderTapProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HigherOrderWhenProxy' => __DIR__.'/../illuminate/collections/HigherOrderWhenProxy.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\HtmlString' => __DIR__.'/../illuminate/support/HtmlString.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\InteractsWithTime' => __DIR__.'/../illuminate/support/InteractsWithTime.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ItemNotFoundException' => __DIR__.'/../illuminate/collections/ItemNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Js' => __DIR__.'/../illuminate/support/Js.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\LazyCollection' => __DIR__.'/../illuminate/collections/LazyCollection.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Manager' => __DIR__.'/../illuminate/support/Manager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MessageBag' => __DIR__.'/../illuminate/support/MessageBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MultipleInstanceManager' => __DIR__.'/../illuminate/support/MultipleInstanceManager.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\MultipleItemsFoundException' => __DIR__.'/../illuminate/collections/MultipleItemsFoundException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\NamespacedItemResolver' => __DIR__.'/../illuminate/support/NamespacedItemResolver.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Optional' => __DIR__.'/../illuminate/support/Optional.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Pluralizer' => __DIR__.'/../illuminate/support/Pluralizer.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ProcessUtils' => __DIR__.'/../illuminate/support/ProcessUtils.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Reflector' => __DIR__.'/../illuminate/support/Reflector.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ServiceProvider' => __DIR__.'/../illuminate/support/ServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Str' => __DIR__.'/../illuminate/support/Str.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Stringable' => __DIR__.'/../illuminate/support/Stringable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Timebox' => __DIR__.'/../illuminate/support/Timebox.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\CapsuleManagerTrait' => __DIR__.'/../illuminate/support/Traits/CapsuleManagerTrait.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Conditionable' => __DIR__.'/../illuminate/support/Traits/Conditionable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\EnumeratesValues' => __DIR__.'/../illuminate/collections/Traits/EnumeratesValues.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\ForwardsCalls' => __DIR__.'/../illuminate/support/Traits/ForwardsCalls.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Localizable' => __DIR__.'/../illuminate/support/Traits/Localizable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Macroable' => __DIR__.'/../illuminate/macroable/Traits/Macroable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\ReflectsClosures' => __DIR__.'/../illuminate/support/Traits/ReflectsClosures.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\Traits\\Tappable' => __DIR__.'/../illuminate/support/Traits/Tappable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ValidatedInput' => __DIR__.'/../illuminate/support/ValidatedInput.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\Support\\ViewErrorBag' => __DIR__.'/../illuminate/support/ViewErrorBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\AnonymousComponent' => __DIR__.'/../illuminate/view/AnonymousComponent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\AppendableAttributeValue' => __DIR__.'/../illuminate/view/AppendableAttributeValue.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\BladeCompiler' => __DIR__.'/../illuminate/view/Compilers/BladeCompiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Compiler' => __DIR__.'/../illuminate/view/Compilers/Compiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\CompilerInterface' => __DIR__.'/../illuminate/view/Compilers/CompilerInterface.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\ComponentTagCompiler' => __DIR__.'/../illuminate/view/Compilers/ComponentTagCompiler.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesAuthorizations' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesAuthorizations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesClasses' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesClasses.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesComments' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesComments.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesComponents' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesComponents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesConditionals' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesConditionals.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesEchos' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesEchos.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesErrors' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesErrors.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesHelpers' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesHelpers.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesIncludes' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesIncludes.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesInjections' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesInjections.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesJs' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesJs.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesJson' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesJson.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesLayouts' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesLayouts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesLoops' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesLoops.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesRawPhp' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesRawPhp.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesStacks' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesStacks.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Compilers\\Concerns\\CompilesTranslations' => __DIR__.'/../illuminate/view/Compilers/Concerns/CompilesTranslations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Component' => __DIR__.'/../illuminate/view/Component.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ComponentAttributeBag' => __DIR__.'/../illuminate/view/ComponentAttributeBag.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ComponentSlot' => __DIR__.'/../illuminate/view/ComponentSlot.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesComponents' => __DIR__.'/../illuminate/view/Concerns/ManagesComponents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesEvents' => __DIR__.'/../illuminate/view/Concerns/ManagesEvents.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesLayouts' => __DIR__.'/../illuminate/view/Concerns/ManagesLayouts.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesLoops' => __DIR__.'/../illuminate/view/Concerns/ManagesLoops.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesStacks' => __DIR__.'/../illuminate/view/Concerns/ManagesStacks.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Concerns\\ManagesTranslations' => __DIR__.'/../illuminate/view/Concerns/ManagesTranslations.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\DynamicComponent' => __DIR__.'/../illuminate/view/DynamicComponent.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\CompilerEngine' => __DIR__.'/../illuminate/view/Engines/CompilerEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\Engine' => __DIR__.'/../illuminate/view/Engines/Engine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\EngineResolver' => __DIR__.'/../illuminate/view/Engines/EngineResolver.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\FileEngine' => __DIR__.'/../illuminate/view/Engines/FileEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Engines\\PhpEngine' => __DIR__.'/../illuminate/view/Engines/PhpEngine.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Factory' => __DIR__.'/../illuminate/view/Factory.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\FileViewFinder' => __DIR__.'/../illuminate/view/FileViewFinder.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\InvokableComponentVariable' => __DIR__.'/../illuminate/view/InvokableComponentVariable.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\Middleware\\ShareErrorsFromSession' => __DIR__.'/../illuminate/view/Middleware/ShareErrorsFromSession.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\View' => __DIR__.'/../illuminate/view/View.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewException' => __DIR__.'/../illuminate/view/ViewException.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewFinderInterface' => __DIR__.'/../illuminate/view/ViewFinderInterface.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewName' => __DIR__.'/../illuminate/view/ViewName.php',
|
||||
'_JchOptimizeVendor\\Illuminate\\View\\ViewServiceProvider' => __DIR__.'/../illuminate/view/ViewServiceProvider.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\AbstractController' => __DIR__.'/../joomla/controller/src/AbstractController.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Controller\\ControllerInterface' => __DIR__.'/../joomla/controller/src/ControllerInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Container' => __DIR__.'/../joomla/di/src/Container.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerAwareInterface' => __DIR__.'/../joomla/di/src/ContainerAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerAwareTrait' => __DIR__.'/../joomla/di/src/ContainerAwareTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ContainerResource' => __DIR__.'/../joomla/di/src/ContainerResource.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\ContainerNotFoundException' => __DIR__.'/../joomla/di/src/Exception/ContainerNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\DependencyResolutionException' => __DIR__.'/../joomla/di/src/Exception/DependencyResolutionException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\KeyNotFoundException' => __DIR__.'/../joomla/di/src/Exception/KeyNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\Exception\\ProtectedKeyException' => __DIR__.'/../joomla/di/src/Exception/ProtectedKeyException.php',
|
||||
'_JchOptimizeVendor\\Joomla\\DI\\ServiceProviderInterface' => __DIR__.'/../joomla/di/src/ServiceProviderInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\DatabaseModelInterface' => __DIR__.'/../joomla/model/src/DatabaseModelInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\DatabaseModelTrait' => __DIR__.'/../joomla/model/src/DatabaseModelTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\StatefulModelInterface' => __DIR__.'/../joomla/model/src/StatefulModelInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Model\\StatefulModelTrait' => __DIR__.'/../joomla/model/src/StatefulModelTrait.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\AbstractRenderer' => __DIR__.'/../joomla/renderer/src/AbstractRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\AddTemplateFolderInterface' => __DIR__.'/../joomla/renderer/src/AddTemplateFolderInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\BladeRenderer' => __DIR__.'/../joomla/renderer/src/BladeRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\ConfigurableFileExtensionInterface' => __DIR__.'/../joomla/renderer/src/ConfigurableFileExtensionInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\MustacheRenderer' => __DIR__.'/../joomla/renderer/src/MustacheRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\PhpEngineRenderer' => __DIR__.'/../joomla/renderer/src/PhpEngineRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\PlatesRenderer' => __DIR__.'/../joomla/renderer/src/PlatesRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\RendererInterface' => __DIR__.'/../joomla/renderer/src/RendererInterface.php',
|
||||
'_JchOptimizeVendor\\Joomla\\Renderer\\TwigRenderer' => __DIR__.'/../joomla/renderer/src/TwigRenderer.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\AbstractView' => __DIR__.'/../joomla/view/src/AbstractView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\HtmlView' => __DIR__.'/../joomla/view/src/HtmlView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\JsonView' => __DIR__.'/../joomla/view/src/JsonView.php',
|
||||
'_JchOptimizeVendor\\Joomla\\View\\ViewInterface' => __DIR__.'/../joomla/view/src/ViewInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\BadMethodCallException' => __DIR__.'/../laminas/laminas-cache/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-cache/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\ExtensionNotLoadedException' => __DIR__.'/../laminas/laminas-cache/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-cache/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\LogicException' => __DIR__.'/../laminas/laminas-cache/src/Exception/LogicException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\MissingDependencyException' => __DIR__.'/../laminas/laminas-cache/src/Exception/MissingDependencyException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\MissingKeyException' => __DIR__.'/../laminas/laminas-cache/src/Exception/MissingKeyException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\OutOfSpaceException' => __DIR__.'/../laminas/laminas-cache/src/Exception/OutOfSpaceException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-cache/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\UnexpectedValueException' => __DIR__.'/../laminas/laminas-cache/src/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Exception\\UnsupportedMethodCallException' => __DIR__.'/../laminas/laminas-cache/src/Exception/UnsupportedMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Module' => __DIR__.'/../laminas/laminas-cache/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\AbstractPattern' => __DIR__.'/../laminas/laminas-cache/src/Pattern/AbstractPattern.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\AbstractStorageCapablePattern' => __DIR__.'/../laminas/laminas-cache/src/Pattern/AbstractStorageCapablePattern.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\CallbackCache' => __DIR__.'/../laminas/laminas-cache/src/Pattern/CallbackCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\CaptureCache' => __DIR__.'/../laminas/laminas-cache/src/Pattern/CaptureCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\ObjectCache' => __DIR__.'/../laminas/laminas-cache/src/Pattern/ObjectCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\OutputCache' => __DIR__.'/../laminas/laminas-cache/src/Pattern/OutputCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\PatternInterface' => __DIR__.'/../laminas/laminas-cache/src/Pattern/PatternInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\PatternOptions' => __DIR__.'/../laminas/laminas-cache/src/Pattern/PatternOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Pattern\\StorageCapableInterface' => __DIR__.'/../laminas/laminas-cache/src/Pattern/StorageCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\DeprecatedSchemaDetector' => __DIR__.'/../laminas/laminas-cache/src/Service/DeprecatedSchemaDetector.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\DeprecatedSchemaDetectorInterface' => __DIR__.'/../laminas/laminas-cache/src/Service/DeprecatedSchemaDetectorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageAdapterFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactoryFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageAdapterFactoryFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterFactoryInterface' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageAdapterFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageAdapterPluginManagerFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageAdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageCacheAbstractServiceFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageCacheAbstractServiceFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StorageCacheFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StorageCacheFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StoragePluginFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactoryFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StoragePluginFactoryFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginFactoryInterface' => __DIR__.'/../laminas/laminas-cache/src/Service/StoragePluginFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Service\\StoragePluginManagerFactory' => __DIR__.'/../laminas/laminas-cache/src/Service/StoragePluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\AdapterPluginManager' => __DIR__.'/../laminas/laminas-cache/src/Storage/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\AbstractAdapter' => __DIR__.'/../laminas/laminas-cache/src/Storage/Adapter/AbstractAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\AdapterOptions' => __DIR__.'/../laminas/laminas-cache/src/Storage/Adapter/AdapterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/Apcu.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\ApcuIterator' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/ApcuIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\ApcuOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/ApcuOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\AdapterPluginManagerDelegatorFactory' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/Apcu/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/Apcu/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Apcu\\Module' => __DIR__.'/../laminas/laminas-cache-storage-adapter-apcu/src/Apcu/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole' => __DIR__.'/../laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\AdapterPluginManagerDelegatorFactory' => __DIR__.'/../laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\BlackHole\\Module' => __DIR__.'/../laminas/laminas-cache-storage-adapter-blackhole/src/BlackHole/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\InvalidRedisClusterConfigurationException' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Exception/InvalidRedisClusterConfigurationException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\MetadataErrorException' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Exception/MetadataErrorException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Exception\\RedisRuntimeException' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Exception/RedisRuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\FilesystemIterator' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/FilesystemIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\FilesystemOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/FilesystemOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\AdapterPluginManagerDelegatorFactory' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Exception\\MetadataException' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Exception/MetadataException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Exception\\UnlinkException' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Exception/UnlinkException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\FilesystemInteractionInterface' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/FilesystemInteractionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\LocalFilesystemInteraction' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Filesystem\\Module' => __DIR__.'/../laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\KeyListIterator' => __DIR__.'/../laminas/laminas-cache/src/Storage/Adapter/KeyListIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/Memcached.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\MemcachedOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/MemcachedOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\MemcachedResourceManager' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/MemcachedResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\AdapterPluginManagerDelegatorFactory' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/Memcached/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/Memcached/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Memcached\\Module' => __DIR__.'/../laminas/laminas-cache-storage-adapter-memcached/src/Memcached/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Redis.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisCluster' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisCluster.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisClusterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterOptionsFromIni' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisClusterOptionsFromIni.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterResourceManager' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisClusterResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisClusterResourceManagerInterface' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisClusterResourceManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\RedisResourceManager' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/RedisResourceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\AdapterPluginManagerDelegatorFactory' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Redis/AdapterPluginManagerDelegatorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\ConfigProvider' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Redis/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\Redis\\Module' => __DIR__.'/../laminas/laminas-cache-storage-adapter-redis/src/Redis/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\WinCache' => __DIR__.'/../laminas/laminas-cache-storage-adapter-wincache/src/WinCache.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Adapter\\WinCacheOptions' => __DIR__.'/../laminas/laminas-cache-storage-adapter-wincache/src/WinCacheOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\AvailableSpaceCapableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/AvailableSpaceCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Capabilities' => __DIR__.'/../laminas/laminas-cache/src/Storage/Capabilities.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearByNamespaceInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/ClearByNamespaceInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearByPrefixInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/ClearByPrefixInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ClearExpiredInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/ClearExpiredInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Event' => __DIR__.'/../laminas/laminas-cache/src/Storage/Event.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\ExceptionEvent' => __DIR__.'/../laminas/laminas-cache/src/Storage/ExceptionEvent.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\FlushableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/FlushableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\IterableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/IterableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\IteratorInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/IteratorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\OptimizableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/OptimizableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginAwareInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/PluginAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginCapableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/PluginCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PluginManager' => __DIR__.'/../laminas/laminas-cache/src/Storage/PluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\AbstractPlugin' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/AbstractPlugin.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\ClearExpiredByFactor' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/ClearExpiredByFactor.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\ExceptionHandler' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/ExceptionHandler.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\IgnoreUserAbort' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/IgnoreUserAbort.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\OptimizeByFactor' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/OptimizeByFactor.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\PluginInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/PluginInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\PluginOptions' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/PluginOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\Plugin\\Serializer' => __DIR__.'/../laminas/laminas-cache/src/Storage/Plugin/Serializer.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\PostEvent' => __DIR__.'/../laminas/laminas-cache/src/Storage/PostEvent.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\StorageInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/StorageInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\TaggableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/TaggableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Cache\\Storage\\TotalSpaceCapableInterface' => __DIR__.'/../laminas/laminas-cache/src/Storage/TotalSpaceCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\AbstractListenerAggregate' => __DIR__.'/../laminas/laminas-eventmanager/src/AbstractListenerAggregate.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Event' => __DIR__.'/../laminas/laminas-eventmanager/src/Event.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/EventInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManager' => __DIR__.'/../laminas/laminas-eventmanager/src/EventManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerAwareInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/EventManagerAwareInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerAwareTrait' => __DIR__.'/../laminas/laminas-eventmanager/src/EventManagerAwareTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventManagerInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/EventManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\EventsCapableInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/EventsCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\DomainException' => __DIR__.'/../laminas/laminas-eventmanager/src/Exception/DomainException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-eventmanager/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\InvalidCallbackException' => __DIR__.'/../laminas/laminas-eventmanager/src/Exception/InvalidCallbackException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-eventmanager/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\FilterChain' => __DIR__.'/../laminas/laminas-eventmanager/src/FilterChain.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Filter\\FilterInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/Filter/FilterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\Filter\\FilterIterator' => __DIR__.'/../laminas/laminas-eventmanager/src/Filter/FilterIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyEventListener' => __DIR__.'/../laminas/laminas-eventmanager/src/LazyEventListener.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyListener' => __DIR__.'/../laminas/laminas-eventmanager/src/LazyListener.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\LazyListenerAggregate' => __DIR__.'/../laminas/laminas-eventmanager/src/LazyListenerAggregate.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ListenerAggregateInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/ListenerAggregateInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ListenerAggregateTrait' => __DIR__.'/../laminas/laminas-eventmanager/src/ListenerAggregateTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\ResponseCollection' => __DIR__.'/../laminas/laminas-eventmanager/src/ResponseCollection.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventManager' => __DIR__.'/../laminas/laminas-eventmanager/src/SharedEventManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventManagerInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/SharedEventManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\EventManager\\SharedEventsCapableInterface' => __DIR__.'/../laminas/laminas-eventmanager/src/SharedEventsCapableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Decoder' => __DIR__.'/../laminas/laminas-json/src/Decoder.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Encoder' => __DIR__.'/../laminas/laminas-json/src/Encoder.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\BadMethodCallException' => __DIR__.'/../laminas/laminas-json/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-json/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-json/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\RecursionException' => __DIR__.'/../laminas/laminas-json/src/Exception/RecursionException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-json/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Expr' => __DIR__.'/../laminas/laminas-json/src/Expr.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Json\\Json' => __DIR__.'/../laminas/laminas-json/src/Json.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterAggregateInterface' => __DIR__.'/../laminas/laminas-paginator/src/AdapterAggregateInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterPluginManager' => __DIR__.'/../laminas/laminas-paginator/src/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\AdapterPluginManagerFactory' => __DIR__.'/../laminas/laminas-paginator/src/AdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\AdapterInterface' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/AdapterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\ArrayAdapter' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/ArrayAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Callback' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Callback.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\DbSelect' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/DbSelect.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\DbTableGateway' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/DbTableGateway.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\MissingRowCountColumnException' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Exception/MissingRowCountColumnException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Exception\\UnexpectedValueException' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Iterator' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Iterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\NullFill' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/NullFill.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\CallbackFactory' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Service/CallbackFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\DbSelectFactory' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Service/DbSelectFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\DbTableGatewayFactory' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Service/DbTableGatewayFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Adapter\\Service\\IteratorFactory' => __DIR__.'/../laminas/laminas-paginator/src/Adapter/Service/IteratorFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ConfigProvider' => __DIR__.'/../laminas/laminas-paginator/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-paginator/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-paginator/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-paginator/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Exception\\UnexpectedValueException' => __DIR__.'/../laminas/laminas-paginator/src/Exception/UnexpectedValueException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Factory' => __DIR__.'/../laminas/laminas-paginator/src/Factory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Module' => __DIR__.'/../laminas/laminas-paginator/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\Paginator' => __DIR__.'/../laminas/laminas-paginator/src/Paginator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\PaginatorIterator' => __DIR__.'/../laminas/laminas-paginator/src/PaginatorIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStylePluginManager' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStylePluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStylePluginManagerFactory' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStylePluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\All' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStyle/All.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Elastic' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStyle/Elastic.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Jumping' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStyle/Jumping.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\ScrollingStyleInterface' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStyle/ScrollingStyleInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\ScrollingStyle\\Sliding' => __DIR__.'/../laminas/laminas-paginator/src/ScrollingStyle/Sliding.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Paginator\\SerializableLimitIterator' => __DIR__.'/../laminas/laminas-paginator/src/SerializableLimitIterator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\AdapterPluginManager' => __DIR__.'/../laminas/laminas-serializer/src/AdapterPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\AdapterPluginManagerFactory' => __DIR__.'/../laminas/laminas-serializer/src/AdapterPluginManagerFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AbstractAdapter' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/AbstractAdapter.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AdapterInterface' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/AdapterInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\AdapterOptions' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/AdapterOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\IgBinary' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/IgBinary.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\Json' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/Json.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\JsonOptions' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/JsonOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\MsgPack' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/MsgPack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpCode' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/PhpCode.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpSerialize' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/PhpSerialize.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PhpSerializeOptions' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/PhpSerializeOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PythonPickle' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/PythonPickle.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\PythonPickleOptions' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/PythonPickleOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\Wddx' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/Wddx.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Adapter\\WddxOptions' => __DIR__.'/../laminas/laminas-serializer/src/Adapter/WddxOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\ConfigProvider' => __DIR__.'/../laminas/laminas-serializer/src/ConfigProvider.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-serializer/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\ExtensionNotLoadedException' => __DIR__.'/../laminas/laminas-serializer/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-serializer/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-serializer/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Module' => __DIR__.'/../laminas/laminas-serializer/src/Module.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Serializer\\Serializer' => __DIR__.'/../laminas/laminas-serializer/src/Serializer.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/AbstractFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactory\\ConfigAbstractFactory' => __DIR__.'/../laminas/laminas-servicemanager/src/AbstractFactory/ConfigAbstractFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractFactory\\ReflectionBasedAbstractFactory' => __DIR__.'/../laminas/laminas-servicemanager/src/AbstractFactory/ReflectionBasedAbstractFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\AbstractPluginManager' => __DIR__.'/../laminas/laminas-servicemanager/src/AbstractPluginManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Config' => __DIR__.'/../laminas/laminas-servicemanager/src/Config.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ConfigInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/ConfigInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\DelegatorFactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/DelegatorFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ContainerModificationsNotAllowedException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/ContainerModificationsNotAllowedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\CyclicAliasException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/CyclicAliasException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\InvalidServiceException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/InvalidServiceException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ServiceNotCreatedException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/ServiceNotCreatedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Exception\\ServiceNotFoundException' => __DIR__.'/../laminas/laminas-servicemanager/src/Exception/ServiceNotFoundException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\FactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/FactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\AbstractFactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/Factory/AbstractFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\DelegatorFactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/Factory/DelegatorFactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\FactoryInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/Factory/FactoryInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Factory\\InvokableFactory' => __DIR__.'/../laminas/laminas-servicemanager/src/Factory/InvokableFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\InitializerInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/InitializerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Initializer\\InitializerInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/Initializer/InitializerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\PluginManagerInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/PluginManagerInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Proxy\\LazyServiceFactory' => __DIR__.'/../laminas/laminas-servicemanager/src/Proxy/LazyServiceFactory.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ServiceLocatorInterface' => __DIR__.'/../laminas/laminas-servicemanager/src/ServiceLocatorInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\ServiceManager' => __DIR__.'/../laminas/laminas-servicemanager/src/ServiceManager.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\ConfigDumper' => __DIR__.'/../laminas/laminas-servicemanager/src/Tool/ConfigDumper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\ConfigDumperCommand' => __DIR__.'/../laminas/laminas-servicemanager/src/Tool/ConfigDumperCommand.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\FactoryCreator' => __DIR__.'/../laminas/laminas-servicemanager/src/Tool/FactoryCreator.php',
|
||||
'_JchOptimizeVendor\\Laminas\\ServiceManager\\Tool\\FactoryCreatorCommand' => __DIR__.'/../laminas/laminas-servicemanager/src/Tool/FactoryCreatorCommand.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\AbstractOptions' => __DIR__.'/../laminas/laminas-stdlib/src/AbstractOptions.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayObject' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayObject.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArraySerializableInterface' => __DIR__.'/../laminas/laminas-stdlib/src/ArraySerializableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayStack' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayStack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayUtils.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeRemoveKey' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayUtils/MergeRemoveKey.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeReplaceKey' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayUtils/MergeReplaceKey.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ArrayUtils\\MergeReplaceKeyInterface' => __DIR__.'/../laminas/laminas-stdlib/src/ArrayUtils/MergeReplaceKeyInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ConsoleHelper' => __DIR__.'/../laminas/laminas-stdlib/src/ConsoleHelper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\DispatchableInterface' => __DIR__.'/../laminas/laminas-stdlib/src/DispatchableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ErrorHandler' => __DIR__.'/../laminas/laminas-stdlib/src/ErrorHandler.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\BadMethodCallException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/BadMethodCallException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\DomainException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/DomainException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\ExceptionInterface' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/ExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\ExtensionNotLoadedException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/ExtensionNotLoadedException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\InvalidArgumentException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\LogicException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/LogicException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Exception\\RuntimeException' => __DIR__.'/../laminas/laminas-stdlib/src/Exception/RuntimeException.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\FastPriorityQueue' => __DIR__.'/../laminas/laminas-stdlib/src/FastPriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Glob' => __DIR__.'/../laminas/laminas-stdlib/src/Glob.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\AllGuardsTrait' => __DIR__.'/../laminas/laminas-stdlib/src/Guard/AllGuardsTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\ArrayOrTraversableGuardTrait' => __DIR__.'/../laminas/laminas-stdlib/src/Guard/ArrayOrTraversableGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\EmptyGuardTrait' => __DIR__.'/../laminas/laminas-stdlib/src/Guard/EmptyGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Guard\\NullGuardTrait' => __DIR__.'/../laminas/laminas-stdlib/src/Guard/NullGuardTrait.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\InitializableInterface' => __DIR__.'/../laminas/laminas-stdlib/src/InitializableInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\JsonSerializable' => __DIR__.'/../laminas/laminas-stdlib/src/JsonSerializable.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Message' => __DIR__.'/../laminas/laminas-stdlib/src/Message.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\MessageInterface' => __DIR__.'/../laminas/laminas-stdlib/src/MessageInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ParameterObjectInterface' => __DIR__.'/../laminas/laminas-stdlib/src/ParameterObjectInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Parameters' => __DIR__.'/../laminas/laminas-stdlib/src/Parameters.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ParametersInterface' => __DIR__.'/../laminas/laminas-stdlib/src/ParametersInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\PriorityList' => __DIR__.'/../laminas/laminas-stdlib/src/PriorityList.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\PriorityQueue' => __DIR__.'/../laminas/laminas-stdlib/src/PriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Request' => __DIR__.'/../laminas/laminas-stdlib/src/Request.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\RequestInterface' => __DIR__.'/../laminas/laminas-stdlib/src/RequestInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\Response' => __DIR__.'/../laminas/laminas-stdlib/src/Response.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\ResponseInterface' => __DIR__.'/../laminas/laminas-stdlib/src/ResponseInterface.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplPriorityQueue' => __DIR__.'/../laminas/laminas-stdlib/src/SplPriorityQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplQueue' => __DIR__.'/../laminas/laminas-stdlib/src/SplQueue.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\SplStack' => __DIR__.'/../laminas/laminas-stdlib/src/SplStack.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringUtils' => __DIR__.'/../laminas/laminas-stdlib/src/StringUtils.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\AbstractStringWrapper' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/AbstractStringWrapper.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Iconv' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/Iconv.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Intl' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/Intl.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\MbString' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/MbString.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\Native' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/Native.php',
|
||||
'_JchOptimizeVendor\\Laminas\\Stdlib\\StringWrapper\\StringWrapperInterface' => __DIR__.'/../laminas/laminas-stdlib/src/StringWrapper/StringWrapperInterface.php',
|
||||
'_JchOptimizeVendor\\PhpToken' => __DIR__.'/../symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\ContainerExceptionInterface' => __DIR__.'/../psr/container/src/ContainerExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\ContainerInterface' => __DIR__.'/../psr/container/src/ContainerInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Container\\NotFoundExceptionInterface' => __DIR__.'/../psr/container/src/NotFoundExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\ClientExceptionInterface' => __DIR__.'/../psr/http-client/src/ClientExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\ClientInterface' => __DIR__.'/../psr/http-client/src/ClientInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\NetworkExceptionInterface' => __DIR__.'/../psr/http-client/src/NetworkExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Client\\RequestExceptionInterface' => __DIR__.'/../psr/http-client/src/RequestExceptionInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\MessageInterface' => __DIR__.'/../psr/http-message/src/MessageInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\RequestInterface' => __DIR__.'/../psr/http-message/src/RequestInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\ResponseInterface' => __DIR__.'/../psr/http-message/src/ResponseInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\ServerRequestInterface' => __DIR__.'/../psr/http-message/src/ServerRequestInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\StreamInterface' => __DIR__.'/../psr/http-message/src/StreamInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\UploadedFileInterface' => __DIR__.'/../psr/http-message/src/UploadedFileInterface.php',
|
||||
'_JchOptimizeVendor\\Psr\\Http\\Message\\UriInterface' => __DIR__.'/../psr/http-message/src/UriInterface.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlObservers\\CrawlObserver' => __DIR__.'/../spatie/crawler/src/CrawlObservers/CrawlObserver.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlObservers\\CrawlObserverCollection' => __DIR__.'/../spatie/crawler/src/CrawlObservers/CrawlObserverCollection.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlAllUrls' => __DIR__.'/../spatie/crawler/src/CrawlProfiles/CrawlAllUrls.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlInternalUrls' => __DIR__.'/../spatie/crawler/src/CrawlProfiles/CrawlInternalUrls.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlProfile' => __DIR__.'/../spatie/crawler/src/CrawlProfiles/CrawlProfile.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlProfiles\\CrawlSubdomains' => __DIR__.'/../spatie/crawler/src/CrawlProfiles/CrawlSubdomains.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlQueues\\ArrayCrawlQueue' => __DIR__.'/../spatie/crawler/src/CrawlQueues/ArrayCrawlQueue.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlQueues\\CrawlQueue' => __DIR__.'/../spatie/crawler/src/CrawlQueues/CrawlQueue.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlUrl' => __DIR__.'/../spatie/crawler/src/CrawlUrl.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Crawler' => __DIR__.'/../spatie/crawler/src/Crawler.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\CrawlerRobots' => __DIR__.'/../spatie/crawler/src/CrawlerRobots.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\InvalidCrawlRequestHandler' => __DIR__.'/../spatie/crawler/src/Exceptions/InvalidCrawlRequestHandler.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\InvalidUrl' => __DIR__.'/../spatie/crawler/src/Exceptions/InvalidUrl.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Exceptions\\UrlNotFoundByIndex' => __DIR__.'/../spatie/crawler/src/Exceptions/UrlNotFoundByIndex.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Handlers\\CrawlRequestFailed' => __DIR__.'/../spatie/crawler/src/Handlers/CrawlRequestFailed.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\Handlers\\CrawlRequestFulfilled' => __DIR__.'/../spatie/crawler/src/Handlers/CrawlRequestFulfilled.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\LinkAdder' => __DIR__.'/../spatie/crawler/src/LinkAdder.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Crawler\\ResponseWithCachedBody' => __DIR__.'/../spatie/crawler/src/ResponseWithCachedBody.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\Robots' => __DIR__.'/../spatie/robots-txt/src/Robots.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsHeaders' => __DIR__.'/../spatie/robots-txt/src/RobotsHeaders.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsMeta' => __DIR__.'/../spatie/robots-txt/src/RobotsMeta.php',
|
||||
'_JchOptimizeVendor\\Spatie\\Robots\\RobotsTxt' => __DIR__.'/../spatie/robots-txt/src/RobotsTxt.php',
|
||||
'_JchOptimizeVendor\\Stringable' => __DIR__.'/../symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\AbstractUriElement' => __DIR__.'/../symfony/dom-crawler/AbstractUriElement.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Crawler' => __DIR__.'/../symfony/dom-crawler/Crawler.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\ChoiceFormField' => __DIR__.'/../symfony/dom-crawler/Field/ChoiceFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\FileFormField' => __DIR__.'/../symfony/dom-crawler/Field/FileFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\FormField' => __DIR__.'/../symfony/dom-crawler/Field/FormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\InputFormField' => __DIR__.'/../symfony/dom-crawler/Field/InputFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Field\\TextareaFormField' => __DIR__.'/../symfony/dom-crawler/Field/TextareaFormField.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Form' => __DIR__.'/../symfony/dom-crawler/Form.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\FormFieldRegistry' => __DIR__.'/../symfony/dom-crawler/FormFieldRegistry.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Image' => __DIR__.'/../symfony/dom-crawler/Image.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\Link' => __DIR__.'/../symfony/dom-crawler/Link.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Component\\DomCrawler\\UriResolver' => __DIR__.'/../symfony/dom-crawler/UriResolver.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__.'/../symfony/polyfill-mbstring/Mbstring.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\Php80' => __DIR__.'/../symfony/polyfill-php80/Php80.php',
|
||||
'_JchOptimizeVendor\\Symfony\\Polyfill\\Php80\\PhpToken' => __DIR__.'/../symfony/polyfill-php80/PhpToken.php',
|
||||
'_JchOptimizeVendor\\Tree\\Builder\\NodeBuilder' => __DIR__.'/../nicmart/tree/src/Builder/NodeBuilder.php',
|
||||
'_JchOptimizeVendor\\Tree\\Builder\\NodeBuilderInterface' => __DIR__.'/../nicmart/tree/src/Builder/NodeBuilderInterface.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\Node' => __DIR__.'/../nicmart/tree/src/Node/Node.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\NodeInterface' => __DIR__.'/../nicmart/tree/src/Node/NodeInterface.php',
|
||||
'_JchOptimizeVendor\\Tree\\Node\\NodeTrait' => __DIR__.'/../nicmart/tree/src/Node/NodeTrait.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\PostOrderVisitor' => __DIR__.'/../nicmart/tree/src/Visitor/PostOrderVisitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\PreOrderVisitor' => __DIR__.'/../nicmart/tree/src/Visitor/PreOrderVisitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\Visitor' => __DIR__.'/../nicmart/tree/src/Visitor/Visitor.php',
|
||||
'_JchOptimizeVendor\\Tree\\Visitor\\YieldVisitor' => __DIR__.'/../nicmart/tree/src/Visitor/YieldVisitor.php',
|
||||
'_JchOptimizeVendor\\UnhandledMatchError' => __DIR__.'/../symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
||||
'_JchOptimizeVendor\\ValueError' => __DIR__.'/../symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\Assert' => __DIR__.'/../webmozart/assert/src/Assert.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\InvalidArgumentException' => __DIR__.'/../webmozart/assert/src/InvalidArgumentException.php',
|
||||
'_JchOptimizeVendor\\Webmozart\\Assert\\Mixin' => __DIR__.'/../webmozart/assert/src/Mixin.php',
|
||||
];
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc9c410f933e0df798c52abcbe3ffb58d::$classMap;
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
||||
19
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/LICENSE
vendored
Normal file
19
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/LICENSE
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
Copyright (C) 2016 Composer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
3363
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/res/cacert.pem
vendored
Normal file
3363
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/res/cacert.pem
vendored
Normal file
File diff suppressed because it is too large
Load Diff
391
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/src/CaBundle.php
vendored
Normal file
391
administrator/components/com_jchoptimize/lib/vendor/composer/ca-bundle/src/CaBundle.php
vendored
Normal file
@@ -0,0 +1,391 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of composer/ca-bundle.
|
||||
*
|
||||
* (c) Composer <https://github.com/composer>
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace _JchOptimizeVendor\Composer\CaBundle;
|
||||
|
||||
use _JchOptimizeVendor\Symfony\Component\Process\PhpProcess;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
* @author Chris Smith <chris@cs278.org>
|
||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
||||
*/
|
||||
class CaBundle
|
||||
{
|
||||
/** @var null|string */
|
||||
private static $caPath;
|
||||
|
||||
/** @var array<string, bool> */
|
||||
private static $caFileValidity = [];
|
||||
|
||||
/** @var null|bool */
|
||||
private static $useOpensslParse;
|
||||
|
||||
/**
|
||||
* Returns the system CA bundle path, or a path to the bundled one.
|
||||
*
|
||||
* This method was adapted from Sslurp.
|
||||
* https://github.com/EvanDotPro/Sslurp
|
||||
*
|
||||
* (c) Evan Coury <me@evancoury.com>
|
||||
*
|
||||
* For the full copyright and license information, please see below:
|
||||
*
|
||||
* Copyright (c) 2013, Evan Coury
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* * Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* @param LoggerInterface $logger optional logger for information about which CA files were loaded
|
||||
*
|
||||
* @return string path to a CA bundle file or directory
|
||||
*/
|
||||
public static function getSystemCaRootBundlePath(LoggerInterface $logger = null)
|
||||
{
|
||||
if (null !== self::$caPath) {
|
||||
return self::$caPath;
|
||||
}
|
||||
$caBundlePaths = [];
|
||||
// If SSL_CERT_FILE env variable points to a valid certificate/bundle, use that.
|
||||
// This mimics how OpenSSL uses the SSL_CERT_FILE env variable.
|
||||
$caBundlePaths[] = self::getEnvVariable('SSL_CERT_FILE');
|
||||
// If SSL_CERT_DIR env variable points to a valid certificate/bundle, use that.
|
||||
// This mimics how OpenSSL uses the SSL_CERT_FILE env variable.
|
||||
$caBundlePaths[] = self::getEnvVariable('SSL_CERT_DIR');
|
||||
$caBundlePaths[] = \ini_get('openssl.cafile');
|
||||
$caBundlePaths[] = \ini_get('openssl.capath');
|
||||
$otherLocations = [
|
||||
'/etc/pki/tls/certs/ca-bundle.crt',
|
||||
// Fedora, RHEL, CentOS (ca-certificates package)
|
||||
'/etc/ssl/certs/ca-certificates.crt',
|
||||
// Debian, Ubuntu, Gentoo, Arch Linux (ca-certificates package)
|
||||
'/etc/ssl/ca-bundle.pem',
|
||||
// SUSE, openSUSE (ca-certificates package)
|
||||
'/usr/local/share/certs/ca-root-nss.crt',
|
||||
// FreeBSD (ca_root_nss_package)
|
||||
'/usr/ssl/certs/ca-bundle.crt',
|
||||
// Cygwin
|
||||
'/opt/local/share/curl/curl-ca-bundle.crt',
|
||||
// OS X macports, curl-ca-bundle package
|
||||
'/usr/local/share/curl/curl-ca-bundle.crt',
|
||||
// Default cURL CA bunde path (without --with-ca-bundle option)
|
||||
'/usr/share/ssl/certs/ca-bundle.crt',
|
||||
// Really old RedHat?
|
||||
'/etc/ssl/cert.pem',
|
||||
// OpenBSD
|
||||
'/usr/local/etc/ssl/cert.pem',
|
||||
// FreeBSD 10.x
|
||||
'/usr/local/etc/openssl/cert.pem',
|
||||
// OS X homebrew, openssl package
|
||||
'/usr/local/etc/openssl@1.1/cert.pem',
|
||||
];
|
||||
foreach ($otherLocations as $location) {
|
||||
$otherLocations[] = \dirname($location);
|
||||
}
|
||||
$caBundlePaths = \array_merge($caBundlePaths, $otherLocations);
|
||||
foreach ($caBundlePaths as $caBundle) {
|
||||
if ($caBundle && self::caFileUsable($caBundle, $logger)) {
|
||||
return self::$caPath = $caBundle;
|
||||
}
|
||||
if ($caBundle && self::caDirUsable($caBundle, $logger)) {
|
||||
return self::$caPath = $caBundle;
|
||||
}
|
||||
}
|
||||
|
||||
return self::$caPath = static::getBundledCaBundlePath();
|
||||
// Bundled CA file, last resort
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the path to the bundled CA file.
|
||||
*
|
||||
* In case you don't want to trust the user or the system, you can use this directly
|
||||
*
|
||||
* @return string path to a CA bundle file
|
||||
*/
|
||||
public static function getBundledCaBundlePath()
|
||||
{
|
||||
$caBundleFile = __DIR__.'/../res/cacert.pem';
|
||||
// cURL does not understand 'phar://' paths
|
||||
// see https://github.com/composer/ca-bundle/issues/10
|
||||
if (0 === \strpos($caBundleFile, 'phar://')) {
|
||||
$tempCaBundleFile = \tempnam(\sys_get_temp_dir(), 'openssl-ca-bundle-');
|
||||
if (\false === $tempCaBundleFile) {
|
||||
throw new \RuntimeException('Could not create a temporary file to store the bundled CA file');
|
||||
}
|
||||
\file_put_contents($tempCaBundleFile, \file_get_contents($caBundleFile));
|
||||
\register_shutdown_function(function () use ($tempCaBundleFile) {
|
||||
@\unlink($tempCaBundleFile);
|
||||
});
|
||||
$caBundleFile = $tempCaBundleFile;
|
||||
}
|
||||
|
||||
return $caBundleFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validates a CA file using opensl_x509_parse only if it is safe to use.
|
||||
*
|
||||
* @param string $filename
|
||||
* @param LoggerInterface $logger optional logger for information about which CA files were loaded
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function validateCaFile($filename, LoggerInterface $logger = null)
|
||||
{
|
||||
static $warned = \false;
|
||||
if (isset(self::$caFileValidity[$filename])) {
|
||||
return self::$caFileValidity[$filename];
|
||||
}
|
||||
$contents = \file_get_contents($filename);
|
||||
// assume the CA is valid if php is vulnerable to
|
||||
// https://www.sektioneins.de/advisories/advisory-012013-php-openssl_x509_parse-memory-corruption-vulnerability.html
|
||||
if (!static::isOpensslParseSafe()) {
|
||||
if (!$warned && $logger) {
|
||||
$logger->warning(\sprintf('Your version of PHP, %s, is affected by CVE-2013-6420 and cannot safely perform certificate validation, we strongly suggest you upgrade.', \PHP_VERSION));
|
||||
$warned = \true;
|
||||
}
|
||||
$isValid = !empty($contents);
|
||||
} elseif (\is_string($contents) && \strlen($contents) > 0) {
|
||||
$contents = \preg_replace('/^(\\-+(?:BEGIN|END))\\s+TRUSTED\\s+(CERTIFICATE\\-+)$/m', '$1 $2', $contents);
|
||||
if (null === $contents) {
|
||||
// regex extraction failed
|
||||
$isValid = \false;
|
||||
} else {
|
||||
$isValid = (bool) \openssl_x509_parse($contents);
|
||||
}
|
||||
} else {
|
||||
$isValid = \false;
|
||||
}
|
||||
if ($logger) {
|
||||
$logger->debug('Checked CA file '.\realpath($filename).': '.($isValid ? 'valid' : 'invalid'));
|
||||
}
|
||||
|
||||
return self::$caFileValidity[$filename] = $isValid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if it is safe to use the PHP function openssl_x509_parse().
|
||||
*
|
||||
* This checks if OpenSSL extensions is vulnerable to remote code execution
|
||||
* via the exploit documented as CVE-2013-6420.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isOpensslParseSafe()
|
||||
{
|
||||
if (null !== self::$useOpensslParse) {
|
||||
return self::$useOpensslParse;
|
||||
}
|
||||
if (\PHP_VERSION_ID >= 50600) {
|
||||
return self::$useOpensslParse = \true;
|
||||
}
|
||||
// Vulnerable:
|
||||
// PHP 5.3.0 - PHP 5.3.27
|
||||
// PHP 5.4.0 - PHP 5.4.22
|
||||
// PHP 5.5.0 - PHP 5.5.6
|
||||
if (\PHP_VERSION_ID < 50400 && \PHP_VERSION_ID >= 50328 || \PHP_VERSION_ID < 50500 && \PHP_VERSION_ID >= 50423 || \PHP_VERSION_ID >= 50507) {
|
||||
// This version of PHP has the fix for CVE-2013-6420 applied.
|
||||
return self::$useOpensslParse = \true;
|
||||
}
|
||||
if (\defined('PHP_WINDOWS_VERSION_BUILD')) {
|
||||
// Windows is probably insecure in this case.
|
||||
return self::$useOpensslParse = \false;
|
||||
}
|
||||
$compareDistroVersionPrefix = function ($prefix, $fixedVersion) {
|
||||
$regex = '{^'.\preg_quote($prefix).'([0-9]+)$}';
|
||||
if (\preg_match($regex, \PHP_VERSION, $m)) {
|
||||
return (int) $m[1] >= $fixedVersion;
|
||||
}
|
||||
|
||||
return \false;
|
||||
};
|
||||
// Hard coded list of PHP distributions with the fix backported.
|
||||
if ($compareDistroVersionPrefix('5.3.3-7+squeeze', 18) || $compareDistroVersionPrefix('5.4.4-14+deb7u', 7) || $compareDistroVersionPrefix('5.3.10-1ubuntu3.', 9)) {
|
||||
return self::$useOpensslParse = \true;
|
||||
}
|
||||
// Symfony Process component is missing so we assume it is unsafe at this point
|
||||
if (!\class_exists('_JchOptimizeVendor\\Symfony\\Component\\Process\\PhpProcess')) {
|
||||
return self::$useOpensslParse = \false;
|
||||
}
|
||||
// This is where things get crazy, because distros backport security
|
||||
// fixes the chances are on NIX systems the fix has been applied but
|
||||
// it's not possible to verify that from the PHP version.
|
||||
//
|
||||
// To verify exec a new PHP process and run the issue testcase with
|
||||
// known safe input that replicates the bug.
|
||||
// Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415
|
||||
// changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593
|
||||
$cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K';
|
||||
$script = <<<'EOT'
|
||||
|
||||
error_reporting(-1);
|
||||
$info = openssl_x509_parse(base64_decode('%s'));
|
||||
var_dump(PHP_VERSION, $info['issuer']['emailAddress'], $info['validFrom_time_t']);
|
||||
|
||||
EOT;
|
||||
$script = '<'."?php\n".\sprintf($script, $cert);
|
||||
|
||||
try {
|
||||
$process = new PhpProcess($script);
|
||||
$process->mustRun();
|
||||
} catch (\Exception $e) {
|
||||
// In the case of any exceptions just accept it is not possible to
|
||||
// determine the safety of openssl_x509_parse and bail out.
|
||||
return self::$useOpensslParse = \false;
|
||||
}
|
||||
$output = \preg_split('{\\r?\\n}', \trim($process->getOutput()));
|
||||
$errorOutput = \trim($process->getErrorOutput());
|
||||
if (\is_array($output) && 3 === \count($output) && $output[0] === \sprintf('string(%d) "%s"', \strlen(\PHP_VERSION), \PHP_VERSION) && 'string(27) "stefan.esser@sektioneins.de"' === $output[1] && 'int(-1)' === $output[2] && \preg_match('{openssl_x509_parse\\(\\): illegal (?:ASN1 data type for|length in) timestamp in - on line \\d+}', $errorOutput)) {
|
||||
// This PHP has the fix backported probably by a distro security team.
|
||||
return self::$useOpensslParse = \true;
|
||||
}
|
||||
|
||||
return self::$useOpensslParse = \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the static caches.
|
||||
*/
|
||||
public static function reset()
|
||||
{
|
||||
self::$caFileValidity = [];
|
||||
self::$caPath = null;
|
||||
self::$useOpensslParse = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return false|string
|
||||
*/
|
||||
private static function getEnvVariable($name)
|
||||
{
|
||||
if (isset($_SERVER[$name])) {
|
||||
return (string) $_SERVER[$name];
|
||||
}
|
||||
if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== \false && null !== $value) {
|
||||
return (string) $value;
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param false|string $certFile
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function caFileUsable($certFile, LoggerInterface $logger = null)
|
||||
{
|
||||
return $certFile && static::isFile($certFile, $logger) && static::isReadable($certFile, $logger) && static::validateCaFile($certFile, $logger);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param false|string $certDir
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function caDirUsable($certDir, LoggerInterface $logger = null)
|
||||
{
|
||||
return $certDir && static::isDir($certDir, $logger) && static::isReadable($certDir, $logger) && static::glob($certDir.'/*', $logger);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $certFile
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function isFile($certFile, LoggerInterface $logger = null)
|
||||
{
|
||||
$isFile = @\is_file($certFile);
|
||||
if (!$isFile && $logger) {
|
||||
$logger->debug(\sprintf('Checked CA file %s does not exist or it is not a file.', $certFile));
|
||||
}
|
||||
|
||||
return $isFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $certDir
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function isDir($certDir, LoggerInterface $logger = null)
|
||||
{
|
||||
$isDir = @\is_dir($certDir);
|
||||
if (!$isDir && $logger) {
|
||||
$logger->debug(\sprintf('Checked directory %s does not exist or it is not a directory.', $certDir));
|
||||
}
|
||||
|
||||
return $isDir;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $certFileOrDir
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function isReadable($certFileOrDir, LoggerInterface $logger = null)
|
||||
{
|
||||
$isReadable = @\is_readable($certFileOrDir);
|
||||
if (!$isReadable && $logger) {
|
||||
$logger->debug(\sprintf('Checked file or directory %s is not readable.', $certFileOrDir));
|
||||
}
|
||||
|
||||
return $isReadable;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pattern
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
private static function glob($pattern, LoggerInterface $logger = null)
|
||||
{
|
||||
$certs = \glob($pattern);
|
||||
if (\false === $certs) {
|
||||
if ($logger) {
|
||||
$logger->debug(\sprintf('An error occurred while trying to find certificates for pattern: %s', $pattern));
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
if (0 === \count($certs)) {
|
||||
if ($logger) {
|
||||
$logger->debug(\sprintf('No CA files found for pattern: %s', $pattern));
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
4701
administrator/components/com_jchoptimize/lib/vendor/composer/installed.json
vendored
Normal file
4701
administrator/components/com_jchoptimize/lib/vendor/composer/installed.json
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
administrator/components/com_jchoptimize/lib/vendor/composer/installed.php
vendored
Normal file
5
administrator/components/com_jchoptimize/lib/vendor/composer/installed.php
vendored
Normal file
File diff suppressed because one or more lines are too long
26
administrator/components/com_jchoptimize/lib/vendor/composer/platform_check.php
vendored
Normal file
26
administrator/components/com_jchoptimize/lib/vendor/composer/platform_check.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
// platform_check.php @generated by Composer
|
||||
|
||||
$issues = [];
|
||||
|
||||
if (!(PHP_VERSION_ID >= 70400)) {
|
||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running '.PHP_VERSION.'.';
|
||||
}
|
||||
|
||||
if ($issues) {
|
||||
if (!headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
}
|
||||
if (!ini_get('display_errors')) {
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
fwrite(STDERR, 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.implode(PHP_EOL, $issues).PHP_EOL.PHP_EOL);
|
||||
} elseif (!headers_sent()) {
|
||||
echo 'Composer detected issues in your platform:'.PHP_EOL.PHP_EOL.str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)).PHP_EOL.PHP_EOL;
|
||||
}
|
||||
}
|
||||
trigger_error(
|
||||
'Composer detected issues in your platform: '.implode(' ', $issues),
|
||||
E_USER_ERROR
|
||||
);
|
||||
}
|
||||
27
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/LICENSE
vendored
Normal file
27
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/LICENSE
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2011 Michael Dowling <mtdowling@gmail.com>
|
||||
Copyright (c) 2012 Jeremy Lindblom <jeremeamia@gmail.com>
|
||||
Copyright (c) 2014 Graham Campbell <hello@gjcampbell.co.uk>
|
||||
Copyright (c) 2015 Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
Copyright (c) 2015 Tobias Schultze <webmaster@tubo-world.de>
|
||||
Copyright (c) 2016 Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
Copyright (c) 2016 George Mponos <gmponos@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
26
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
vendored
Normal file
26
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/BodySummarizer.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\MessageInterface;
|
||||
|
||||
final class BodySummarizer implements BodySummarizerInterface
|
||||
{
|
||||
/**
|
||||
* @var null|int
|
||||
*/
|
||||
private $truncateAt;
|
||||
|
||||
public function __construct(int $truncateAt = null)
|
||||
{
|
||||
$this->truncateAt = $truncateAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a summarized message body.
|
||||
*/
|
||||
public function summarize(MessageInterface $message): ?string
|
||||
{
|
||||
return null === $this->truncateAt ? \_JchOptimizeVendor\GuzzleHttp\Psr7\Message::bodySummary($message) : \_JchOptimizeVendor\GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\MessageInterface;
|
||||
|
||||
interface BodySummarizerInterface
|
||||
{
|
||||
/**
|
||||
* Returns a summarized message body.
|
||||
*/
|
||||
public function summarize(MessageInterface $message): ?string;
|
||||
}
|
||||
432
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Client.php
vendored
Normal file
432
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Client.php
vendored
Normal file
@@ -0,0 +1,432 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Cookie\CookieJar;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\GuzzleException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\InvalidArgumentException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* @final
|
||||
*/
|
||||
class Client implements ClientInterface, \_JchOptimizeVendor\Psr\Http\Client\ClientInterface
|
||||
{
|
||||
use ClientTrait;
|
||||
|
||||
/**
|
||||
* @var array Default request options
|
||||
*/
|
||||
private $config;
|
||||
|
||||
/**
|
||||
* Clients accept an array of constructor parameters.
|
||||
*
|
||||
* Here's an example of creating a client using a base_uri and an array of
|
||||
* default request options to apply to each request:
|
||||
*
|
||||
* $client = new Client([
|
||||
* 'base_uri' => 'http://www.foo.com/1.0/',
|
||||
* 'timeout' => 0,
|
||||
* 'allow_redirects' => false,
|
||||
* 'proxy' => '192.168.16.1:10'
|
||||
* ]);
|
||||
*
|
||||
* Client configuration settings include the following options:
|
||||
*
|
||||
* - handler: (callable) Function that transfers HTTP requests over the
|
||||
* wire. The function is called with a Psr7\Http\Message\RequestInterface
|
||||
* and array of transfer options, and must return a
|
||||
* GuzzleHttp\Promise\PromiseInterface that is fulfilled with a
|
||||
* Psr7\Http\Message\ResponseInterface on success.
|
||||
* If no handler is provided, a default handler will be created
|
||||
* that enables all of the request options below by attaching all of the
|
||||
* default middleware to the handler.
|
||||
* - base_uri: (string|UriInterface) Base URI of the client that is merged
|
||||
* into relative URIs. Can be a string or instance of UriInterface.
|
||||
* - **: any request option
|
||||
*
|
||||
* @param array $config client configuration settings
|
||||
*
|
||||
* @see \GuzzleHttp\RequestOptions for a list of available request options.
|
||||
*/
|
||||
public function __construct(array $config = [])
|
||||
{
|
||||
if (!isset($config['handler'])) {
|
||||
$config['handler'] = HandlerStack::create();
|
||||
} elseif (!\is_callable($config['handler'])) {
|
||||
throw new InvalidArgumentException('handler must be a callable');
|
||||
}
|
||||
// Convert the base_uri to a UriInterface
|
||||
if (isset($config['base_uri'])) {
|
||||
$config['base_uri'] = Psr7\Utils::uriFor($config['base_uri']);
|
||||
}
|
||||
$this->configureDefaults($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $method
|
||||
* @param array $args
|
||||
*
|
||||
* @return PromiseInterface|ResponseInterface
|
||||
*
|
||||
* @deprecated Client::__call will be removed in guzzlehttp/guzzle:8.0.
|
||||
*/
|
||||
public function __call($method, $args)
|
||||
{
|
||||
if (\count($args) < 1) {
|
||||
throw new InvalidArgumentException('Magic request methods require a URI and optional options array');
|
||||
}
|
||||
$uri = $args[0];
|
||||
$opts = $args[1] ?? [];
|
||||
|
||||
return 'Async' === \substr($method, -5) ? $this->requestAsync(\substr($method, 0, -5), $uri, $opts) : $this->request($method, $uri, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asynchronously send an HTTP request.
|
||||
*
|
||||
* @param array $options Request options to apply to the given
|
||||
* request and to the transfer. See \GuzzleHttp\RequestOptions.
|
||||
*/
|
||||
public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface
|
||||
{
|
||||
// Merge the base URI into the request URI if needed.
|
||||
$options = $this->prepareDefaults($options);
|
||||
|
||||
return $this->transfer($request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an HTTP request.
|
||||
*
|
||||
* @param array $options Request options to apply to the given
|
||||
* request and to the transfer. See \GuzzleHttp\RequestOptions.
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function send(RequestInterface $request, array $options = []): ResponseInterface
|
||||
{
|
||||
$options[RequestOptions::SYNCHRONOUS] = \true;
|
||||
|
||||
return $this->sendAsync($request, $options)->wait();
|
||||
}
|
||||
|
||||
/**
|
||||
* The HttpClient PSR (PSR-18) specify this method.
|
||||
*
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function sendRequest(RequestInterface $request): ResponseInterface
|
||||
{
|
||||
$options[RequestOptions::SYNCHRONOUS] = \true;
|
||||
$options[RequestOptions::ALLOW_REDIRECTS] = \false;
|
||||
$options[RequestOptions::HTTP_ERRORS] = \false;
|
||||
|
||||
return $this->sendAsync($request, $options)->wait();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options Request options to apply. See \GuzzleHttp\RequestOptions.
|
||||
*/
|
||||
public function requestAsync(string $method, $uri = '', array $options = []): PromiseInterface
|
||||
{
|
||||
$options = $this->prepareDefaults($options);
|
||||
// Remove request modifying parameter because it can be done up-front.
|
||||
$headers = $options['headers'] ?? [];
|
||||
$body = $options['body'] ?? null;
|
||||
$version = $options['version'] ?? '1.1';
|
||||
// Merge the URI into the base URI.
|
||||
$uri = $this->buildUri(Psr7\Utils::uriFor($uri), $options);
|
||||
if (\is_array($body)) {
|
||||
throw $this->invalidBody();
|
||||
}
|
||||
$request = new Psr7\Request($method, $uri, $headers, $body, $version);
|
||||
// Remove the option so that they are not doubly-applied.
|
||||
unset($options['headers'], $options['body'], $options['version']);
|
||||
|
||||
return $this->transfer($request, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options Request options to apply. See \GuzzleHttp\RequestOptions.
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function request(string $method, $uri = '', array $options = []): ResponseInterface
|
||||
{
|
||||
$options[RequestOptions::SYNCHRONOUS] = \true;
|
||||
|
||||
return $this->requestAsync($method, $uri, $options)->wait();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a client configuration option.
|
||||
*
|
||||
* These options include default request options of the client, a "handler"
|
||||
* (if utilized by the concrete client), and a "base_uri" if utilized by
|
||||
* the concrete client.
|
||||
*
|
||||
* @param null|string $option the config option to retrieve
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @deprecated Client::getConfig will be removed in guzzlehttp/guzzle:8.0.
|
||||
*/
|
||||
public function getConfig(?string $option = null)
|
||||
{
|
||||
return null === $option ? $this->config : $this->config[$option] ?? null;
|
||||
}
|
||||
|
||||
private function buildUri(UriInterface $uri, array $config): UriInterface
|
||||
{
|
||||
if (isset($config['base_uri'])) {
|
||||
$uri = Psr7\UriResolver::resolve(Psr7\Utils::uriFor($config['base_uri']), $uri);
|
||||
}
|
||||
if (isset($config['idn_conversion']) && \false !== $config['idn_conversion']) {
|
||||
$idnOptions = \true === $config['idn_conversion'] ? \IDNA_DEFAULT : $config['idn_conversion'];
|
||||
$uri = Utils::idnUriConvert($uri, $idnOptions);
|
||||
}
|
||||
|
||||
return '' === $uri->getScheme() && '' !== $uri->getHost() ? $uri->withScheme('http') : $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configures the default options for a client.
|
||||
*/
|
||||
private function configureDefaults(array $config): void
|
||||
{
|
||||
$defaults = ['allow_redirects' => RedirectMiddleware::$defaultSettings, 'http_errors' => \true, 'decode_content' => \true, 'verify' => \true, 'cookies' => \false, 'idn_conversion' => \false];
|
||||
// Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set.
|
||||
// We can only trust the HTTP_PROXY environment variable in a CLI
|
||||
// process due to the fact that PHP has no reliable mechanism to
|
||||
// get environment variables that start with "HTTP_".
|
||||
if (\PHP_SAPI === 'cli' && ($proxy = Utils::getenv('HTTP_PROXY'))) {
|
||||
$defaults['proxy']['http'] = $proxy;
|
||||
}
|
||||
if ($proxy = Utils::getenv('HTTPS_PROXY')) {
|
||||
$defaults['proxy']['https'] = $proxy;
|
||||
}
|
||||
if ($noProxy = Utils::getenv('NO_PROXY')) {
|
||||
$cleanedNoProxy = \str_replace(' ', '', $noProxy);
|
||||
$defaults['proxy']['no'] = \explode(',', $cleanedNoProxy);
|
||||
}
|
||||
$this->config = $config + $defaults;
|
||||
if (!empty($config['cookies']) && \true === $config['cookies']) {
|
||||
$this->config['cookies'] = new CookieJar();
|
||||
}
|
||||
// Add the default user-agent header.
|
||||
if (!isset($this->config['headers'])) {
|
||||
$this->config['headers'] = ['User-Agent' => Utils::defaultUserAgent()];
|
||||
} else {
|
||||
// Add the User-Agent header if one was not already set.
|
||||
foreach (\array_keys($this->config['headers']) as $name) {
|
||||
if ('user-agent' === \strtolower($name)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
$this->config['headers']['User-Agent'] = Utils::defaultUserAgent();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Merges default options into the array.
|
||||
*
|
||||
* @param array $options Options to modify by reference
|
||||
*/
|
||||
private function prepareDefaults(array $options): array
|
||||
{
|
||||
$defaults = $this->config;
|
||||
if (!empty($defaults['headers'])) {
|
||||
// Default headers are only added if they are not present.
|
||||
$defaults['_conditional'] = $defaults['headers'];
|
||||
unset($defaults['headers']);
|
||||
}
|
||||
// Special handling for headers is required as they are added as
|
||||
// conditional headers and as headers passed to a request ctor.
|
||||
if (\array_key_exists('headers', $options)) {
|
||||
// Allows default headers to be unset.
|
||||
if (null === $options['headers']) {
|
||||
$defaults['_conditional'] = [];
|
||||
unset($options['headers']);
|
||||
} elseif (!\is_array($options['headers'])) {
|
||||
throw new InvalidArgumentException('headers must be an array');
|
||||
}
|
||||
}
|
||||
// Shallow merge defaults underneath options.
|
||||
$result = $options + $defaults;
|
||||
// Remove null values.
|
||||
foreach ($result as $k => $v) {
|
||||
if (null === $v) {
|
||||
unset($result[$k]);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Transfers the given request and applies request options.
|
||||
*
|
||||
* The URI of the request is not modified and the request options are used
|
||||
* as-is without merging in default options.
|
||||
*
|
||||
* @param array $options see \GuzzleHttp\RequestOptions
|
||||
*/
|
||||
private function transfer(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
$request = $this->applyOptions($request, $options);
|
||||
|
||||
/** @var HandlerStack $handler */
|
||||
$handler = $options['handler'];
|
||||
|
||||
try {
|
||||
return P\Create::promiseFor($handler($request, $options));
|
||||
} catch (\Exception $e) {
|
||||
return P\Create::rejectionFor($e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies the array of request options to a request.
|
||||
*/
|
||||
private function applyOptions(RequestInterface $request, array &$options): RequestInterface
|
||||
{
|
||||
$modify = ['set_headers' => []];
|
||||
if (isset($options['headers'])) {
|
||||
if (\array_keys($options['headers']) === \range(0, \count($options['headers']) - 1)) {
|
||||
throw new InvalidArgumentException('The headers array must have header name as keys.');
|
||||
}
|
||||
$modify['set_headers'] = $options['headers'];
|
||||
unset($options['headers']);
|
||||
}
|
||||
if (isset($options['form_params'])) {
|
||||
if (isset($options['multipart'])) {
|
||||
throw new InvalidArgumentException('You cannot use form_params and multipart at the same time. Use the form_params option if you want to send application/x-www-form-urlencoded requests, and the multipart option to send multipart/form-data requests.');
|
||||
}
|
||||
$options['body'] = \http_build_query($options['form_params'], '', '&');
|
||||
unset($options['form_params']);
|
||||
// Ensure that we don't have the header in different case and set the new value.
|
||||
$options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']);
|
||||
$options['_conditional']['Content-Type'] = 'application/x-www-form-urlencoded';
|
||||
}
|
||||
if (isset($options['multipart'])) {
|
||||
$options['body'] = new Psr7\MultipartStream($options['multipart']);
|
||||
unset($options['multipart']);
|
||||
}
|
||||
if (isset($options['json'])) {
|
||||
$options['body'] = Utils::jsonEncode($options['json']);
|
||||
unset($options['json']);
|
||||
// Ensure that we don't have the header in different case and set the new value.
|
||||
$options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']);
|
||||
$options['_conditional']['Content-Type'] = 'application/json';
|
||||
}
|
||||
if (!empty($options['decode_content']) && \true !== $options['decode_content']) {
|
||||
// Ensure that we don't have the header in different case and set the new value.
|
||||
$options['_conditional'] = Psr7\Utils::caselessRemove(['Accept-Encoding'], $options['_conditional']);
|
||||
$modify['set_headers']['Accept-Encoding'] = $options['decode_content'];
|
||||
}
|
||||
if (isset($options['body'])) {
|
||||
if (\is_array($options['body'])) {
|
||||
throw $this->invalidBody();
|
||||
}
|
||||
$modify['body'] = Psr7\Utils::streamFor($options['body']);
|
||||
unset($options['body']);
|
||||
}
|
||||
if (!empty($options['auth']) && \is_array($options['auth'])) {
|
||||
$value = $options['auth'];
|
||||
$type = isset($value[2]) ? \strtolower($value[2]) : 'basic';
|
||||
|
||||
switch ($type) {
|
||||
case 'basic':
|
||||
// Ensure that we don't have the header in different case and set the new value.
|
||||
$modify['set_headers'] = Psr7\Utils::caselessRemove(['Authorization'], $modify['set_headers']);
|
||||
$modify['set_headers']['Authorization'] = 'Basic '.\base64_encode("{$value[0]}:{$value[1]}");
|
||||
|
||||
break;
|
||||
|
||||
case 'digest':
|
||||
// @todo: Do not rely on curl
|
||||
$options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_DIGEST;
|
||||
$options['curl'][\CURLOPT_USERPWD] = "{$value[0]}:{$value[1]}";
|
||||
|
||||
break;
|
||||
|
||||
case 'ntlm':
|
||||
$options['curl'][\CURLOPT_HTTPAUTH] = \CURLAUTH_NTLM;
|
||||
$options['curl'][\CURLOPT_USERPWD] = "{$value[0]}:{$value[1]}";
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isset($options['query'])) {
|
||||
$value = $options['query'];
|
||||
if (\is_array($value)) {
|
||||
$value = \http_build_query($value, '', '&', \PHP_QUERY_RFC3986);
|
||||
}
|
||||
if (!\is_string($value)) {
|
||||
throw new InvalidArgumentException('query must be a string or array');
|
||||
}
|
||||
$modify['query'] = $value;
|
||||
unset($options['query']);
|
||||
}
|
||||
// Ensure that sink is not an invalid value.
|
||||
if (isset($options['sink'])) {
|
||||
// TODO: Add more sink validation?
|
||||
if (\is_bool($options['sink'])) {
|
||||
throw new InvalidArgumentException('sink must not be a boolean');
|
||||
}
|
||||
}
|
||||
$request = Psr7\Utils::modifyRequest($request, $modify);
|
||||
if ($request->getBody() instanceof Psr7\MultipartStream) {
|
||||
// Use a multipart/form-data POST if a Content-Type is not set.
|
||||
// Ensure that we don't have the header in different case and set the new value.
|
||||
$options['_conditional'] = Psr7\Utils::caselessRemove(['Content-Type'], $options['_conditional']);
|
||||
$options['_conditional']['Content-Type'] = 'multipart/form-data; boundary='.$request->getBody()->getBoundary();
|
||||
}
|
||||
// Merge in conditional headers if they are not present.
|
||||
if (isset($options['_conditional'])) {
|
||||
// Build up the changes so it's in a single clone of the message.
|
||||
$modify = [];
|
||||
foreach ($options['_conditional'] as $k => $v) {
|
||||
if (!$request->hasHeader($k)) {
|
||||
$modify['set_headers'][$k] = $v;
|
||||
}
|
||||
}
|
||||
$request = Psr7\Utils::modifyRequest($request, $modify);
|
||||
// Don't pass this internal value along to middleware/handlers.
|
||||
unset($options['_conditional']);
|
||||
}
|
||||
|
||||
return $request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an InvalidArgumentException with pre-set message.
|
||||
*/
|
||||
private function invalidBody(): InvalidArgumentException
|
||||
{
|
||||
return new InvalidArgumentException('Passing in the "body" request option as an array to send a request is not supported. Please use the "form_params" request option to send a application/x-www-form-urlencoded request, or the "multipart" request option to send a multipart/form-data request.');
|
||||
}
|
||||
}
|
||||
84
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/ClientInterface.php
vendored
Normal file
84
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/ClientInterface.php
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\GuzzleException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* Client interface for sending HTTP requests.
|
||||
*/
|
||||
interface ClientInterface
|
||||
{
|
||||
/**
|
||||
* The Guzzle major version.
|
||||
*/
|
||||
public const MAJOR_VERSION = 7;
|
||||
|
||||
/**
|
||||
* Send an HTTP request.
|
||||
*
|
||||
* @param RequestInterface $request Request to send
|
||||
* @param array $options request options to apply to the given
|
||||
* request and to the transfer
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function send(RequestInterface $request, array $options = []): ResponseInterface;
|
||||
|
||||
/**
|
||||
* Asynchronously send an HTTP request.
|
||||
*
|
||||
* @param RequestInterface $request Request to send
|
||||
* @param array $options request options to apply to the given
|
||||
* request and to the transfer
|
||||
*/
|
||||
public function sendAsync(RequestInterface $request, array $options = []): PromiseInterface;
|
||||
|
||||
/**
|
||||
* Create and send an HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function request(string $method, $uri, array $options = []): ResponseInterface;
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function requestAsync(string $method, $uri, array $options = []): PromiseInterface;
|
||||
|
||||
/**
|
||||
* Get a client configuration option.
|
||||
*
|
||||
* These options include default request options of the client, a "handler"
|
||||
* (if utilized by the concrete client), and a "base_uri" if utilized by
|
||||
* the concrete client.
|
||||
*
|
||||
* @param null|string $option the config option to retrieve
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @deprecated ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0.
|
||||
*/
|
||||
public function getConfig(?string $option = null);
|
||||
}
|
||||
241
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/ClientTrait.php
vendored
Normal file
241
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/ClientTrait.php
vendored
Normal file
@@ -0,0 +1,241 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\GuzzleException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* Client interface for sending HTTP requests.
|
||||
*/
|
||||
trait ClientTrait
|
||||
{
|
||||
/**
|
||||
* Create and send an HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
abstract public function request(string $method, $uri, array $options = []): ResponseInterface;
|
||||
|
||||
/**
|
||||
* Create and send an HTTP GET request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function get($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('GET', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP HEAD request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function head($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('HEAD', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP PUT request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function put($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('PUT', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP POST request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function post($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('POST', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP PATCH request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function patch($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('PATCH', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an HTTP DELETE request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function delete($uri, array $options = []): ResponseInterface
|
||||
{
|
||||
return $this->request('DELETE', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string $method HTTP method
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
abstract public function requestAsync(string $method, $uri, array $options = []): PromiseInterface;
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP GET request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function getAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('GET', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP HEAD request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function headAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('HEAD', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP PUT request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function putAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('PUT', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP POST request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function postAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('POST', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP PATCH request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function patchAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('PATCH', $uri, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and send an asynchronous HTTP DELETE request.
|
||||
*
|
||||
* Use an absolute path to override the base path of the client, or a
|
||||
* relative path to append to the base path of the client. The URL can
|
||||
* contain the query string as well. Use an array to provide a URL
|
||||
* template and additional variables to use in the URL template expansion.
|
||||
*
|
||||
* @param string|UriInterface $uri URI object or string
|
||||
* @param array $options request options to apply
|
||||
*/
|
||||
public function deleteAsync($uri, array $options = []): PromiseInterface
|
||||
{
|
||||
return $this->requestAsync('DELETE', $uri, $options);
|
||||
}
|
||||
}
|
||||
268
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
vendored
Normal file
268
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php
vendored
Normal file
@@ -0,0 +1,268 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Cookie;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Cookie jar that stores cookies as an array.
|
||||
*/
|
||||
class CookieJar implements CookieJarInterface
|
||||
{
|
||||
/**
|
||||
* @var SetCookie[] Loaded cookie data
|
||||
*/
|
||||
private $cookies = [];
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $strictMode;
|
||||
|
||||
/**
|
||||
* @param bool $strictMode set to true to throw exceptions when invalid
|
||||
* cookies are added to the cookie jar
|
||||
* @param array $cookieArray Array of SetCookie objects or a hash of
|
||||
* arrays that can be used with the SetCookie
|
||||
* constructor
|
||||
*/
|
||||
public function __construct(bool $strictMode = \false, array $cookieArray = [])
|
||||
{
|
||||
$this->strictMode = $strictMode;
|
||||
foreach ($cookieArray as $cookie) {
|
||||
if (!$cookie instanceof SetCookie) {
|
||||
$cookie = new SetCookie($cookie);
|
||||
}
|
||||
$this->setCookie($cookie);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Cookie jar from an associative array and domain.
|
||||
*
|
||||
* @param array $cookies Cookies to create the jar from
|
||||
* @param string $domain Domain to set the cookies to
|
||||
*/
|
||||
public static function fromArray(array $cookies, string $domain): self
|
||||
{
|
||||
$cookieJar = new self();
|
||||
foreach ($cookies as $name => $value) {
|
||||
$cookieJar->setCookie(new SetCookie(['Domain' => $domain, 'Name' => $name, 'Value' => $value, 'Discard' => \true]));
|
||||
}
|
||||
|
||||
return $cookieJar;
|
||||
}
|
||||
|
||||
/**
|
||||
* Evaluate if this cookie should be persisted to storage
|
||||
* that survives between requests.
|
||||
*
|
||||
* @param SetCookie $cookie being evaluated
|
||||
* @param bool $allowSessionCookies If we should persist session cookies
|
||||
*/
|
||||
public static function shouldPersist(SetCookie $cookie, bool $allowSessionCookies = \false): bool
|
||||
{
|
||||
if ($cookie->getExpires() || $allowSessionCookies) {
|
||||
if (!$cookie->getDiscard()) {
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds and returns the cookie based on the name.
|
||||
*
|
||||
* @param string $name cookie name to search for
|
||||
*
|
||||
* @return null|SetCookie cookie that was found or null if not found
|
||||
*/
|
||||
public function getCookieByName(string $name): ?SetCookie
|
||||
{
|
||||
foreach ($this->cookies as $cookie) {
|
||||
if (null !== $cookie->getName() && 0 === \strcasecmp($cookie->getName(), $name)) {
|
||||
return $cookie;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
return \array_map(static function (SetCookie $cookie): array {
|
||||
return $cookie->toArray();
|
||||
}, $this->getIterator()->getArrayCopy());
|
||||
}
|
||||
|
||||
public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void
|
||||
{
|
||||
if (!$domain) {
|
||||
$this->cookies = [];
|
||||
|
||||
return;
|
||||
}
|
||||
if (!$path) {
|
||||
$this->cookies = \array_filter($this->cookies, static function (SetCookie $cookie) use ($domain): bool {
|
||||
return !$cookie->matchesDomain($domain);
|
||||
});
|
||||
} elseif (!$name) {
|
||||
$this->cookies = \array_filter($this->cookies, static function (SetCookie $cookie) use ($path, $domain): bool {
|
||||
return !($cookie->matchesPath($path) && $cookie->matchesDomain($domain));
|
||||
});
|
||||
} else {
|
||||
$this->cookies = \array_filter($this->cookies, static function (SetCookie $cookie) use ($path, $domain, $name) {
|
||||
return !($cookie->getName() == $name && $cookie->matchesPath($path) && $cookie->matchesDomain($domain));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function clearSessionCookies(): void
|
||||
{
|
||||
$this->cookies = \array_filter($this->cookies, static function (SetCookie $cookie): bool {
|
||||
return !$cookie->getDiscard() && $cookie->getExpires();
|
||||
});
|
||||
}
|
||||
|
||||
public function setCookie(SetCookie $cookie): bool
|
||||
{
|
||||
// If the name string is empty (but not 0), ignore the set-cookie
|
||||
// string entirely.
|
||||
$name = $cookie->getName();
|
||||
if (!$name && '0' !== $name) {
|
||||
return \false;
|
||||
}
|
||||
// Only allow cookies with set and valid domain, name, value
|
||||
$result = $cookie->validate();
|
||||
if (\true !== $result) {
|
||||
if ($this->strictMode) {
|
||||
throw new \RuntimeException('Invalid cookie: '.$result);
|
||||
}
|
||||
$this->removeCookieIfEmpty($cookie);
|
||||
|
||||
return \false;
|
||||
}
|
||||
// Resolve conflicts with previously set cookies
|
||||
foreach ($this->cookies as $i => $c) {
|
||||
// Two cookies are identical, when their path, and domain are
|
||||
// identical.
|
||||
if ($c->getPath() != $cookie->getPath() || $c->getDomain() != $cookie->getDomain() || $c->getName() != $cookie->getName()) {
|
||||
continue;
|
||||
}
|
||||
// The previously set cookie is a discard cookie and this one is
|
||||
// not so allow the new cookie to be set
|
||||
if (!$cookie->getDiscard() && $c->getDiscard()) {
|
||||
unset($this->cookies[$i]);
|
||||
|
||||
continue;
|
||||
}
|
||||
// If the new cookie's expiration is further into the future, then
|
||||
// replace the old cookie
|
||||
if ($cookie->getExpires() > $c->getExpires()) {
|
||||
unset($this->cookies[$i]);
|
||||
|
||||
continue;
|
||||
}
|
||||
// If the value has changed, we better change it
|
||||
if ($cookie->getValue() !== $c->getValue()) {
|
||||
unset($this->cookies[$i]);
|
||||
|
||||
continue;
|
||||
}
|
||||
// The cookie exists, so no need to continue
|
||||
return \false;
|
||||
}
|
||||
$this->cookies[] = $cookie;
|
||||
|
||||
return \true;
|
||||
}
|
||||
|
||||
public function count(): int
|
||||
{
|
||||
return \count($this->cookies);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \ArrayIterator<int, SetCookie>
|
||||
*/
|
||||
public function getIterator(): \ArrayIterator
|
||||
{
|
||||
return new \ArrayIterator(\array_values($this->cookies));
|
||||
}
|
||||
|
||||
public function extractCookies(RequestInterface $request, ResponseInterface $response): void
|
||||
{
|
||||
if ($cookieHeader = $response->getHeader('Set-Cookie')) {
|
||||
foreach ($cookieHeader as $cookie) {
|
||||
$sc = SetCookie::fromString($cookie);
|
||||
if (!$sc->getDomain()) {
|
||||
$sc->setDomain($request->getUri()->getHost());
|
||||
}
|
||||
if (0 !== \strpos($sc->getPath(), '/')) {
|
||||
$sc->setPath($this->getCookiePathFromRequest($request));
|
||||
}
|
||||
if (!$sc->matchesDomain($request->getUri()->getHost())) {
|
||||
continue;
|
||||
}
|
||||
// Note: At this point `$sc->getDomain()` being a public suffix should
|
||||
// be rejected, but we don't want to pull in the full PSL dependency.
|
||||
$this->setCookie($sc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function withCookieHeader(RequestInterface $request): RequestInterface
|
||||
{
|
||||
$values = [];
|
||||
$uri = $request->getUri();
|
||||
$scheme = $uri->getScheme();
|
||||
$host = $uri->getHost();
|
||||
$path = $uri->getPath() ?: '/';
|
||||
foreach ($this->cookies as $cookie) {
|
||||
if ($cookie->matchesPath($path) && $cookie->matchesDomain($host) && !$cookie->isExpired() && (!$cookie->getSecure() || 'https' === $scheme)) {
|
||||
$values[] = $cookie->getName().'='.$cookie->getValue();
|
||||
}
|
||||
}
|
||||
|
||||
return $values ? $request->withHeader('Cookie', \implode('; ', $values)) : $request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes cookie path following RFC 6265 section 5.1.4.
|
||||
*
|
||||
* @see https://tools.ietf.org/html/rfc6265#section-5.1.4
|
||||
*/
|
||||
private function getCookiePathFromRequest(RequestInterface $request): string
|
||||
{
|
||||
$uriPath = $request->getUri()->getPath();
|
||||
if ('' === $uriPath) {
|
||||
return '/';
|
||||
}
|
||||
if (0 !== \strpos($uriPath, '/')) {
|
||||
return '/';
|
||||
}
|
||||
if ('/' === $uriPath) {
|
||||
return '/';
|
||||
}
|
||||
$lastSlashPos = \strrpos($uriPath, '/');
|
||||
if (0 === $lastSlashPos || \false === $lastSlashPos) {
|
||||
return '/';
|
||||
}
|
||||
|
||||
return \substr($uriPath, 0, $lastSlashPos);
|
||||
}
|
||||
|
||||
/**
|
||||
* If a cookie already exists and the server asks to set it again with a
|
||||
* null value, the cookie must be deleted.
|
||||
*/
|
||||
private function removeCookieIfEmpty(SetCookie $cookie): void
|
||||
{
|
||||
$cookieValue = $cookie->getValue();
|
||||
if (null === $cookieValue || '' === $cookieValue) {
|
||||
$this->clear($cookie->getDomain(), $cookie->getPath(), $cookie->getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Cookie;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Stores HTTP cookies.
|
||||
*
|
||||
* It extracts cookies from HTTP requests, and returns them in HTTP responses.
|
||||
* CookieJarInterface instances automatically expire contained cookies when
|
||||
* necessary. Subclasses are also responsible for storing and retrieving
|
||||
* cookies from a file, database, etc.
|
||||
*
|
||||
* @see https://docs.python.org/2/library/cookielib.html Inspiration
|
||||
*
|
||||
* @extends \IteratorAggregate<SetCookie>
|
||||
*/
|
||||
interface CookieJarInterface extends \Countable, \IteratorAggregate
|
||||
{
|
||||
/**
|
||||
* Create a request with added cookie headers.
|
||||
*
|
||||
* If no matching cookies are found in the cookie jar, then no Cookie
|
||||
* header is added to the request and the same request is returned.
|
||||
*
|
||||
* @param RequestInterface $request request object to modify
|
||||
*
|
||||
* @return RequestInterface returns the modified request
|
||||
*/
|
||||
public function withCookieHeader(RequestInterface $request): RequestInterface;
|
||||
|
||||
/**
|
||||
* Extract cookies from an HTTP response and store them in the CookieJar.
|
||||
*
|
||||
* @param RequestInterface $request Request that was sent
|
||||
* @param ResponseInterface $response Response that was received
|
||||
*/
|
||||
public function extractCookies(RequestInterface $request, ResponseInterface $response): void;
|
||||
|
||||
/**
|
||||
* Sets a cookie in the cookie jar.
|
||||
*
|
||||
* @param SetCookie $cookie cookie to set
|
||||
*
|
||||
* @return bool Returns true on success or false on failure
|
||||
*/
|
||||
public function setCookie(SetCookie $cookie): bool;
|
||||
|
||||
/**
|
||||
* Remove cookies currently held in the cookie jar.
|
||||
*
|
||||
* Invoking this method without arguments will empty the whole cookie jar.
|
||||
* If given a $domain argument only cookies belonging to that domain will
|
||||
* be removed. If given a $domain and $path argument, cookies belonging to
|
||||
* the specified path within that domain are removed. If given all three
|
||||
* arguments, then the cookie with the specified name, path and domain is
|
||||
* removed.
|
||||
*
|
||||
* @param null|string $domain Clears cookies matching a domain
|
||||
* @param null|string $path Clears cookies matching a domain and path
|
||||
* @param null|string $name Clears cookies matching a domain, path, and name
|
||||
*/
|
||||
public function clear(?string $domain = null, ?string $path = null, ?string $name = null): void;
|
||||
|
||||
/**
|
||||
* Discard all sessions cookies.
|
||||
*
|
||||
* Removes cookies that don't have an expire field or a have a discard
|
||||
* field set to true. To be called when the user agent shuts down according
|
||||
* to RFC 2965.
|
||||
*/
|
||||
public function clearSessionCookies(): void;
|
||||
|
||||
/**
|
||||
* Converts the cookie jar to an array.
|
||||
*/
|
||||
public function toArray(): array;
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Cookie;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
|
||||
/**
|
||||
* Persists non-session cookies using a JSON formatted file.
|
||||
*/
|
||||
class FileCookieJar extends CookieJar
|
||||
{
|
||||
/**
|
||||
* @var string filename
|
||||
*/
|
||||
private $filename;
|
||||
|
||||
/**
|
||||
* @var bool control whether to persist session cookies or not
|
||||
*/
|
||||
private $storeSessionCookies;
|
||||
|
||||
/**
|
||||
* Create a new FileCookieJar object.
|
||||
*
|
||||
* @param string $cookieFile File to store the cookie data
|
||||
* @param bool $storeSessionCookies set to true to store session cookies
|
||||
* in the cookie jar
|
||||
*
|
||||
* @throws \RuntimeException if the file cannot be found or created
|
||||
*/
|
||||
public function __construct(string $cookieFile, bool $storeSessionCookies = \false)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->filename = $cookieFile;
|
||||
$this->storeSessionCookies = $storeSessionCookies;
|
||||
if (\file_exists($cookieFile)) {
|
||||
$this->load($cookieFile);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the file when shutting down.
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->save($this->filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the cookies to a file.
|
||||
*
|
||||
* @param string $filename File to save
|
||||
*
|
||||
* @throws \RuntimeException if the file cannot be found or created
|
||||
*/
|
||||
public function save(string $filename): void
|
||||
{
|
||||
$json = [];
|
||||
|
||||
/** @var SetCookie $cookie */
|
||||
foreach ($this as $cookie) {
|
||||
if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) {
|
||||
$json[] = $cookie->toArray();
|
||||
}
|
||||
}
|
||||
$jsonStr = Utils::jsonEncode($json);
|
||||
if (\false === \file_put_contents($filename, $jsonStr, \LOCK_EX)) {
|
||||
throw new \RuntimeException("Unable to save file {$filename}");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Load cookies from a JSON formatted file.
|
||||
*
|
||||
* Old cookies are kept unless overwritten by newly loaded ones.
|
||||
*
|
||||
* @param string $filename cookie file to load
|
||||
*
|
||||
* @throws \RuntimeException if the file cannot be loaded
|
||||
*/
|
||||
public function load(string $filename): void
|
||||
{
|
||||
$json = \file_get_contents($filename);
|
||||
if (\false === $json) {
|
||||
throw new \RuntimeException("Unable to load file {$filename}");
|
||||
}
|
||||
if ('' === $json) {
|
||||
return;
|
||||
}
|
||||
$data = Utils::jsonDecode($json, \true);
|
||||
if (\is_array($data)) {
|
||||
foreach ($data as $cookie) {
|
||||
$this->setCookie(new SetCookie($cookie));
|
||||
}
|
||||
} elseif (\is_scalar($data) && !empty($data)) {
|
||||
throw new \RuntimeException("Invalid cookie file: {$filename}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Cookie;
|
||||
|
||||
/**
|
||||
* Persists cookies in the client session.
|
||||
*/
|
||||
class SessionCookieJar extends CookieJar
|
||||
{
|
||||
/**
|
||||
* @var string session key
|
||||
*/
|
||||
private $sessionKey;
|
||||
|
||||
/**
|
||||
* @var bool control whether to persist session cookies or not
|
||||
*/
|
||||
private $storeSessionCookies;
|
||||
|
||||
/**
|
||||
* Create a new SessionCookieJar object.
|
||||
*
|
||||
* @param string $sessionKey Session key name to store the cookie
|
||||
* data in session
|
||||
* @param bool $storeSessionCookies set to true to store session cookies
|
||||
* in the cookie jar
|
||||
*/
|
||||
public function __construct(string $sessionKey, bool $storeSessionCookies = \false)
|
||||
{
|
||||
parent::__construct();
|
||||
$this->sessionKey = $sessionKey;
|
||||
$this->storeSessionCookies = $storeSessionCookies;
|
||||
$this->load();
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves cookies to session when shutting down.
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
$this->save();
|
||||
}
|
||||
|
||||
/**
|
||||
* Save cookies to the client session.
|
||||
*/
|
||||
public function save(): void
|
||||
{
|
||||
$json = [];
|
||||
|
||||
/** @var SetCookie $cookie */
|
||||
foreach ($this as $cookie) {
|
||||
if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) {
|
||||
$json[] = $cookie->toArray();
|
||||
}
|
||||
}
|
||||
$_SESSION[$this->sessionKey] = \json_encode($json);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the contents of the client session into the data array.
|
||||
*/
|
||||
protected function load(): void
|
||||
{
|
||||
if (!isset($_SESSION[$this->sessionKey])) {
|
||||
return;
|
||||
}
|
||||
$data = \json_decode($_SESSION[$this->sessionKey], \true);
|
||||
if (\is_array($data)) {
|
||||
foreach ($data as $cookie) {
|
||||
$this->setCookie(new SetCookie($cookie));
|
||||
}
|
||||
} elseif (\strlen($data)) {
|
||||
throw new \RuntimeException('Invalid cookie data');
|
||||
}
|
||||
}
|
||||
}
|
||||
439
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php
vendored
Normal file
439
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php
vendored
Normal file
@@ -0,0 +1,439 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Cookie;
|
||||
|
||||
/**
|
||||
* Set-Cookie object.
|
||||
*/
|
||||
class SetCookie
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private static $defaults = ['Name' => null, 'Value' => null, 'Domain' => null, 'Path' => '/', 'Max-Age' => null, 'Expires' => null, 'Secure' => \false, 'Discard' => \false, 'HttpOnly' => \false];
|
||||
|
||||
/**
|
||||
* @var array Cookie data
|
||||
*/
|
||||
private $data;
|
||||
|
||||
/**
|
||||
* @param array $data Array of cookie data provided by a Cookie parser
|
||||
*/
|
||||
public function __construct(array $data = [])
|
||||
{
|
||||
$this->data = self::$defaults;
|
||||
if (isset($data['Name'])) {
|
||||
$this->setName($data['Name']);
|
||||
}
|
||||
if (isset($data['Value'])) {
|
||||
$this->setValue($data['Value']);
|
||||
}
|
||||
if (isset($data['Domain'])) {
|
||||
$this->setDomain($data['Domain']);
|
||||
}
|
||||
if (isset($data['Path'])) {
|
||||
$this->setPath($data['Path']);
|
||||
}
|
||||
if (isset($data['Max-Age'])) {
|
||||
$this->setMaxAge($data['Max-Age']);
|
||||
}
|
||||
if (isset($data['Expires'])) {
|
||||
$this->setExpires($data['Expires']);
|
||||
}
|
||||
if (isset($data['Secure'])) {
|
||||
$this->setSecure($data['Secure']);
|
||||
}
|
||||
if (isset($data['Discard'])) {
|
||||
$this->setDiscard($data['Discard']);
|
||||
}
|
||||
if (isset($data['HttpOnly'])) {
|
||||
$this->setHttpOnly($data['HttpOnly']);
|
||||
}
|
||||
// Set the remaining values that don't have extra validation logic
|
||||
foreach (\array_diff(\array_keys($data), \array_keys(self::$defaults)) as $key) {
|
||||
$this->data[$key] = $data[$key];
|
||||
}
|
||||
// Extract the Expires value and turn it into a UNIX timestamp if needed
|
||||
if (!$this->getExpires() && $this->getMaxAge()) {
|
||||
// Calculate the Expires date
|
||||
$this->setExpires(\time() + $this->getMaxAge());
|
||||
} elseif (null !== ($expires = $this->getExpires()) && !\is_numeric($expires)) {
|
||||
$this->setExpires($expires);
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
$str = $this->data['Name'].'='.($this->data['Value'] ?? '').'; ';
|
||||
foreach ($this->data as $k => $v) {
|
||||
if ('Name' !== $k && 'Value' !== $k && null !== $v && \false !== $v) {
|
||||
if ('Expires' === $k) {
|
||||
$str .= 'Expires='.\gmdate('D, d M Y H:i:s \\G\\M\\T', $v).'; ';
|
||||
} else {
|
||||
$str .= (\true === $v ? $k : "{$k}={$v}").'; ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return \rtrim($str, '; ');
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new SetCookie object from a string.
|
||||
*
|
||||
* @param string $cookie Set-Cookie header string
|
||||
*/
|
||||
public static function fromString(string $cookie): self
|
||||
{
|
||||
// Create the default return array
|
||||
$data = self::$defaults;
|
||||
// Explode the cookie string using a series of semicolons
|
||||
$pieces = \array_filter(\array_map('trim', \explode(';', $cookie)));
|
||||
// The name of the cookie (first kvp) must exist and include an equal sign.
|
||||
if (!isset($pieces[0]) || \false === \strpos($pieces[0], '=')) {
|
||||
return new self($data);
|
||||
}
|
||||
// Add the cookie pieces into the parsed data array
|
||||
foreach ($pieces as $part) {
|
||||
$cookieParts = \explode('=', $part, 2);
|
||||
$key = \trim($cookieParts[0]);
|
||||
$value = isset($cookieParts[1]) ? \trim($cookieParts[1], " \n\r\t\x00\v") : \true;
|
||||
// Only check for non-cookies when cookies have been found
|
||||
if (!isset($data['Name'])) {
|
||||
$data['Name'] = $key;
|
||||
$data['Value'] = $value;
|
||||
} else {
|
||||
foreach (\array_keys(self::$defaults) as $search) {
|
||||
if (!\strcasecmp($search, $key)) {
|
||||
if ('Max-Age' === $search) {
|
||||
if (\is_numeric($value)) {
|
||||
$data[$search] = (int) $value;
|
||||
}
|
||||
} else {
|
||||
$data[$search] = $value;
|
||||
}
|
||||
|
||||
continue 2;
|
||||
}
|
||||
}
|
||||
$data[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
return new self($data);
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the cookie name.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->data['Name'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the cookie name.
|
||||
*
|
||||
* @param string $name Cookie name
|
||||
*/
|
||||
public function setName($name): void
|
||||
{
|
||||
if (!\is_string($name)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Name'] = (string) $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the cookie value.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->data['Value'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the cookie value.
|
||||
*
|
||||
* @param string $value Cookie value
|
||||
*/
|
||||
public function setValue($value): void
|
||||
{
|
||||
if (!\is_string($value)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Value'] = (string) $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the domain.
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getDomain()
|
||||
{
|
||||
return $this->data['Domain'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the domain of the cookie.
|
||||
*
|
||||
* @param null|string $domain
|
||||
*/
|
||||
public function setDomain($domain): void
|
||||
{
|
||||
if (!\is_string($domain) && null !== $domain) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Domain'] = null === $domain ? null : (string) $domain;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the path.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPath()
|
||||
{
|
||||
return $this->data['Path'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the path of the cookie.
|
||||
*
|
||||
* @param string $path Path of the cookie
|
||||
*/
|
||||
public function setPath($path): void
|
||||
{
|
||||
if (!\is_string($path)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Path'] = (string) $path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Maximum lifetime of the cookie in seconds.
|
||||
*
|
||||
* @return null|int
|
||||
*/
|
||||
public function getMaxAge()
|
||||
{
|
||||
return null === $this->data['Max-Age'] ? null : (int) $this->data['Max-Age'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the max-age of the cookie.
|
||||
*
|
||||
* @param null|int $maxAge Max age of the cookie in seconds
|
||||
*/
|
||||
public function setMaxAge($maxAge): void
|
||||
{
|
||||
if (!\is_int($maxAge) && null !== $maxAge) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Max-Age'] = null === $maxAge ? null : (int) $maxAge;
|
||||
}
|
||||
|
||||
/**
|
||||
* The UNIX timestamp when the cookie Expires.
|
||||
*
|
||||
* @return null|int|string
|
||||
*/
|
||||
public function getExpires()
|
||||
{
|
||||
return $this->data['Expires'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the unix timestamp for which the cookie will expire.
|
||||
*
|
||||
* @param null|int|string $timestamp unix timestamp or any English textual datetime description
|
||||
*/
|
||||
public function setExpires($timestamp): void
|
||||
{
|
||||
if (!\is_int($timestamp) && !\is_string($timestamp) && null !== $timestamp) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an int, string or null to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Expires'] = null === $timestamp ? null : (\is_numeric($timestamp) ? (int) $timestamp : \strtotime((string) $timestamp));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether or not this is a secure cookie.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getSecure()
|
||||
{
|
||||
return $this->data['Secure'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether or not the cookie is secure.
|
||||
*
|
||||
* @param bool $secure Set to true or false if secure
|
||||
*/
|
||||
public function setSecure($secure): void
|
||||
{
|
||||
if (!\is_bool($secure)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Secure'] = (bool) $secure;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether or not this is a session cookie.
|
||||
*
|
||||
* @return null|bool
|
||||
*/
|
||||
public function getDiscard()
|
||||
{
|
||||
return $this->data['Discard'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether or not this is a session cookie.
|
||||
*
|
||||
* @param bool $discard Set to true or false if this is a session cookie
|
||||
*/
|
||||
public function setDiscard($discard): void
|
||||
{
|
||||
if (!\is_bool($discard)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['Discard'] = (bool) $discard;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get whether or not this is an HTTP only cookie.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getHttpOnly()
|
||||
{
|
||||
return $this->data['HttpOnly'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether or not this is an HTTP only cookie.
|
||||
*
|
||||
* @param bool $httpOnly Set to true or false if this is HTTP only
|
||||
*/
|
||||
public function setHttpOnly($httpOnly): void
|
||||
{
|
||||
if (!\is_bool($httpOnly)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a bool to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->data['HttpOnly'] = (bool) $httpOnly;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the cookie matches a path value.
|
||||
*
|
||||
* A request-path path-matches a given cookie-path if at least one of
|
||||
* the following conditions holds:
|
||||
*
|
||||
* - The cookie-path and the request-path are identical.
|
||||
* - The cookie-path is a prefix of the request-path, and the last
|
||||
* character of the cookie-path is %x2F ("/").
|
||||
* - The cookie-path is a prefix of the request-path, and the first
|
||||
* character of the request-path that is not included in the cookie-
|
||||
* path is a %x2F ("/") character.
|
||||
*
|
||||
* @param string $requestPath Path to check against
|
||||
*/
|
||||
public function matchesPath(string $requestPath): bool
|
||||
{
|
||||
$cookiePath = $this->getPath();
|
||||
// Match on exact matches or when path is the default empty "/"
|
||||
if ('/' === $cookiePath || $cookiePath == $requestPath) {
|
||||
return \true;
|
||||
}
|
||||
// Ensure that the cookie-path is a prefix of the request path.
|
||||
if (0 !== \strpos($requestPath, $cookiePath)) {
|
||||
return \false;
|
||||
}
|
||||
// Match if the last character of the cookie-path is "/"
|
||||
if ('/' === \substr($cookiePath, -1, 1)) {
|
||||
return \true;
|
||||
}
|
||||
// Match if the first character not included in cookie path is "/"
|
||||
return '/' === \substr($requestPath, \strlen($cookiePath), 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the cookie matches a domain value.
|
||||
*
|
||||
* @param string $domain Domain to check against
|
||||
*/
|
||||
public function matchesDomain(string $domain): bool
|
||||
{
|
||||
$cookieDomain = $this->getDomain();
|
||||
if (null === $cookieDomain) {
|
||||
return \true;
|
||||
}
|
||||
// Remove the leading '.' as per spec in RFC 6265.
|
||||
// https://tools.ietf.org/html/rfc6265#section-5.2.3
|
||||
$cookieDomain = \ltrim(\strtolower($cookieDomain), '.');
|
||||
$domain = \strtolower($domain);
|
||||
// Domain not set or exact match.
|
||||
if ('' === $cookieDomain || $domain === $cookieDomain) {
|
||||
return \true;
|
||||
}
|
||||
// Matching the subdomain according to RFC 6265.
|
||||
// https://tools.ietf.org/html/rfc6265#section-5.1.3
|
||||
if (\filter_var($domain, \FILTER_VALIDATE_IP)) {
|
||||
return \false;
|
||||
}
|
||||
|
||||
return (bool) \preg_match('/\\.'.\preg_quote($cookieDomain, '/').'$/', $domain);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the cookie is expired.
|
||||
*/
|
||||
public function isExpired(): bool
|
||||
{
|
||||
return null !== $this->getExpires() && \time() > $this->getExpires();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the cookie is valid according to RFC 6265.
|
||||
*
|
||||
* @return bool|string Returns true if valid or an error message if invalid
|
||||
*/
|
||||
public function validate()
|
||||
{
|
||||
$name = $this->getName();
|
||||
if ('' === $name) {
|
||||
return 'The cookie name must not be empty';
|
||||
}
|
||||
// Check if any of the invalid characters are present in the cookie name
|
||||
if (\preg_match('/[\\x00-\\x20\\x22\\x28-\\x29\\x2c\\x2f\\x3a-\\x40\\x5c\\x7b\\x7d\\x7f]/', $name)) {
|
||||
return 'Cookie name must not contain invalid characters: ASCII Control characters (0-31;127), space, tab and the following characters: ()<>@,;:\\"/?={}';
|
||||
}
|
||||
// Value must not be null. 0 and empty string are valid. Empty strings
|
||||
// are technically against RFC 6265, but known to happen in the wild.
|
||||
$value = $this->getValue();
|
||||
if (null === $value) {
|
||||
return 'The cookie value must not be empty';
|
||||
}
|
||||
// Domains must not be empty, but can be 0. "0" is not a valid internet
|
||||
// domain, but may be used as server name in a private network.
|
||||
$domain = $this->getDomain();
|
||||
if (null === $domain || '' === $domain) {
|
||||
return 'The cookie domain must not be empty';
|
||||
}
|
||||
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Exception when an HTTP error occurs (4xx or 5xx error).
|
||||
*/
|
||||
class BadResponseException extends RequestException
|
||||
{
|
||||
public function __construct(string $message, RequestInterface $request, ResponseInterface $response, \Throwable $previous = null, array $handlerContext = [])
|
||||
{
|
||||
parent::__construct($message, $request, $response, $previous, $handlerContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* Current exception and the ones that extend it will always have a response.
|
||||
*/
|
||||
public function hasResponse(): bool
|
||||
{
|
||||
return \true;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function narrows the return type from the parent class and does not allow it to be nullable.
|
||||
*/
|
||||
public function getResponse(): ResponseInterface
|
||||
{
|
||||
// @var ResponseInterface
|
||||
return parent::getResponse();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
/**
|
||||
* Exception when a client error is encountered (4xx codes).
|
||||
*/
|
||||
class ClientException extends BadResponseException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Client\NetworkExceptionInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Exception thrown when a connection cannot be established.
|
||||
*
|
||||
* Note that no response is present for a ConnectException
|
||||
*/
|
||||
class ConnectException extends TransferException implements NetworkExceptionInterface
|
||||
{
|
||||
/**
|
||||
* @var RequestInterface
|
||||
*/
|
||||
private $request;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $handlerContext;
|
||||
|
||||
public function __construct(string $message, RequestInterface $request, \Throwable $previous = null, array $handlerContext = [])
|
||||
{
|
||||
parent::__construct($message, 0, $previous);
|
||||
$this->request = $request;
|
||||
$this->handlerContext = $handlerContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the request that caused the exception.
|
||||
*/
|
||||
public function getRequest(): RequestInterface
|
||||
{
|
||||
return $this->request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contextual information about the error from the underlying handler.
|
||||
*
|
||||
* The contents of this array will vary depending on which handler you are
|
||||
* using. It may also be just an empty array. Relying on this data will
|
||||
* couple you to a specific handler, but can give more debug information
|
||||
* when needed.
|
||||
*/
|
||||
public function getHandlerContext(): array
|
||||
{
|
||||
return $this->handlerContext;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Client\ClientExceptionInterface;
|
||||
|
||||
interface GuzzleException extends ClientExceptionInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
final class InvalidArgumentException extends \InvalidArgumentException implements GuzzleException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\BodySummarizer;
|
||||
use _JchOptimizeVendor\GuzzleHttp\BodySummarizerInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Client\RequestExceptionInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* HTTP Request exception.
|
||||
*/
|
||||
class RequestException extends TransferException implements RequestExceptionInterface
|
||||
{
|
||||
/**
|
||||
* @var RequestInterface
|
||||
*/
|
||||
private $request;
|
||||
|
||||
/**
|
||||
* @var null|ResponseInterface
|
||||
*/
|
||||
private $response;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $handlerContext;
|
||||
|
||||
public function __construct(string $message, RequestInterface $request, ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = [])
|
||||
{
|
||||
// Set the code of the exception if the response is set and not future.
|
||||
$code = $response ? $response->getStatusCode() : 0;
|
||||
parent::__construct($message, $code, $previous);
|
||||
$this->request = $request;
|
||||
$this->response = $response;
|
||||
$this->handlerContext = $handlerContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap non-RequestExceptions with a RequestException.
|
||||
*/
|
||||
public static function wrapException(RequestInterface $request, \Throwable $e): RequestException
|
||||
{
|
||||
return $e instanceof RequestException ? $e : new RequestException($e->getMessage(), $request, null, $e);
|
||||
}
|
||||
|
||||
/**
|
||||
* Factory method to create a new exception with a normalized error message.
|
||||
*
|
||||
* @param RequestInterface $request Request sent
|
||||
* @param ResponseInterface $response Response received
|
||||
* @param null|\Throwable $previous Previous exception
|
||||
* @param array $handlerContext Optional handler context
|
||||
* @param null|BodySummarizerInterface $bodySummarizer Optional body summarizer
|
||||
*/
|
||||
public static function create(RequestInterface $request, ResponseInterface $response = null, \Throwable $previous = null, array $handlerContext = [], BodySummarizerInterface $bodySummarizer = null): self
|
||||
{
|
||||
if (!$response) {
|
||||
return new self('Error completing request', $request, null, $previous, $handlerContext);
|
||||
}
|
||||
$level = (int) \floor($response->getStatusCode() / 100);
|
||||
if (4 === $level) {
|
||||
$label = 'Client error';
|
||||
$className = ClientException::class;
|
||||
} elseif (5 === $level) {
|
||||
$label = 'Server error';
|
||||
$className = ServerException::class;
|
||||
} else {
|
||||
$label = 'Unsuccessful request';
|
||||
$className = __CLASS__;
|
||||
}
|
||||
$uri = $request->getUri();
|
||||
$uri = static::obfuscateUri($uri);
|
||||
// Client Error: `GET /` resulted in a `404 Not Found` response:
|
||||
// <html> ... (truncated)
|
||||
$message = \sprintf('%s: `%s %s` resulted in a `%s %s` response', $label, $request->getMethod(), $uri->__toString(), $response->getStatusCode(), $response->getReasonPhrase());
|
||||
$summary = ($bodySummarizer ?? new BodySummarizer())->summarize($response);
|
||||
if (null !== $summary) {
|
||||
$message .= ":\n{$summary}\n";
|
||||
}
|
||||
|
||||
return new $className($message, $request, $response, $previous, $handlerContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the request that caused the exception.
|
||||
*/
|
||||
public function getRequest(): RequestInterface
|
||||
{
|
||||
return $this->request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the associated response.
|
||||
*/
|
||||
public function getResponse(): ?ResponseInterface
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a response was received.
|
||||
*/
|
||||
public function hasResponse(): bool
|
||||
{
|
||||
return null !== $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get contextual information about the error from the underlying handler.
|
||||
*
|
||||
* The contents of this array will vary depending on which handler you are
|
||||
* using. It may also be just an empty array. Relying on this data will
|
||||
* couple you to a specific handler, but can give more debug information
|
||||
* when needed.
|
||||
*/
|
||||
public function getHandlerContext(): array
|
||||
{
|
||||
return $this->handlerContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obfuscates URI if there is a username and a password present.
|
||||
*/
|
||||
private static function obfuscateUri(UriInterface $uri): UriInterface
|
||||
{
|
||||
$userInfo = $uri->getUserInfo();
|
||||
if (\false !== ($pos = \strpos($userInfo, ':'))) {
|
||||
return $uri->withUserInfo(\substr($userInfo, 0, $pos), '***');
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
/**
|
||||
* Exception when a server error is encountered (5xx codes).
|
||||
*/
|
||||
class ServerException extends BadResponseException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
class TooManyRedirectsException extends RequestException
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Exception;
|
||||
|
||||
class TransferException extends \RuntimeException implements GuzzleException
|
||||
{
|
||||
}
|
||||
498
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
vendored
Normal file
498
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
vendored
Normal file
@@ -0,0 +1,498 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\ConnectException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\RequestException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\FulfilledPromise;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Psr7\LazyOpenStream;
|
||||
use _JchOptimizeVendor\GuzzleHttp\TransferStats;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Creates curl resources from a request.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class CurlFactory implements CurlFactoryInterface
|
||||
{
|
||||
public const CURL_VERSION_STR = 'curl_version';
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public const LOW_CURL_VERSION_NUMBER = '7.21.2';
|
||||
|
||||
/**
|
||||
* @var \CurlHandle[]|resource[]
|
||||
*/
|
||||
private $handles = [];
|
||||
|
||||
/**
|
||||
* @var int Total number of idle handles to keep in cache
|
||||
*/
|
||||
private $maxHandles;
|
||||
|
||||
/**
|
||||
* @param int $maxHandles maximum number of idle handles
|
||||
*/
|
||||
public function __construct(int $maxHandles)
|
||||
{
|
||||
$this->maxHandles = $maxHandles;
|
||||
}
|
||||
|
||||
public function create(RequestInterface $request, array $options): EasyHandle
|
||||
{
|
||||
if (isset($options['curl']['body_as_string'])) {
|
||||
$options['_body_as_string'] = $options['curl']['body_as_string'];
|
||||
unset($options['curl']['body_as_string']);
|
||||
}
|
||||
$easy = new EasyHandle();
|
||||
$easy->request = $request;
|
||||
$easy->options = $options;
|
||||
$conf = $this->getDefaultConf($easy);
|
||||
$this->applyMethod($easy, $conf);
|
||||
$this->applyHandlerOptions($easy, $conf);
|
||||
$this->applyHeaders($easy, $conf);
|
||||
unset($conf['_headers']);
|
||||
// Add handler options from the request configuration options
|
||||
if (isset($options['curl'])) {
|
||||
$conf = \array_replace($conf, $options['curl']);
|
||||
}
|
||||
$conf[\CURLOPT_HEADERFUNCTION] = $this->createHeaderFn($easy);
|
||||
$easy->handle = $this->handles ? \array_pop($this->handles) : \curl_init();
|
||||
\curl_setopt_array($easy->handle, $conf);
|
||||
|
||||
return $easy;
|
||||
}
|
||||
|
||||
public function release(EasyHandle $easy): void
|
||||
{
|
||||
$resource = $easy->handle;
|
||||
unset($easy->handle);
|
||||
if (\count($this->handles) >= $this->maxHandles) {
|
||||
\curl_close($resource);
|
||||
} else {
|
||||
// Remove all callback functions as they can hold onto references
|
||||
// and are not cleaned up by curl_reset. Using curl_setopt_array
|
||||
// does not work for some reason, so removing each one
|
||||
// individually.
|
||||
\curl_setopt($resource, \CURLOPT_HEADERFUNCTION, null);
|
||||
\curl_setopt($resource, \CURLOPT_READFUNCTION, null);
|
||||
\curl_setopt($resource, \CURLOPT_WRITEFUNCTION, null);
|
||||
\curl_setopt($resource, \CURLOPT_PROGRESSFUNCTION, null);
|
||||
\curl_reset($resource);
|
||||
$this->handles[] = $resource;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Completes a cURL transaction, either returning a response promise or a
|
||||
* rejected promise.
|
||||
*
|
||||
* @param callable(RequestInterface, array): PromiseInterface $handler
|
||||
* @param CurlFactoryInterface $factory Dictates how the handle is released
|
||||
*/
|
||||
public static function finish(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface
|
||||
{
|
||||
if (isset($easy->options['on_stats'])) {
|
||||
self::invokeStats($easy);
|
||||
}
|
||||
if (!$easy->response || $easy->errno) {
|
||||
return self::finishError($handler, $easy, $factory);
|
||||
}
|
||||
// Return the response if it is present and there is no error.
|
||||
$factory->release($easy);
|
||||
// Rewind the body of the response if possible.
|
||||
$body = $easy->response->getBody();
|
||||
if ($body->isSeekable()) {
|
||||
$body->rewind();
|
||||
}
|
||||
|
||||
return new FulfilledPromise($easy->response);
|
||||
}
|
||||
|
||||
private static function invokeStats(EasyHandle $easy): void
|
||||
{
|
||||
$curlStats = \curl_getinfo($easy->handle);
|
||||
$curlStats['appconnect_time'] = \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME);
|
||||
$stats = new TransferStats($easy->request, $easy->response, $curlStats['total_time'], $easy->errno, $curlStats);
|
||||
$easy->options['on_stats']($stats);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable(RequestInterface, array): PromiseInterface $handler
|
||||
*/
|
||||
private static function finishError(callable $handler, EasyHandle $easy, CurlFactoryInterface $factory): PromiseInterface
|
||||
{
|
||||
// Get error information and release the handle to the factory.
|
||||
$ctx = ['errno' => $easy->errno, 'error' => \curl_error($easy->handle), 'appconnect_time' => \curl_getinfo($easy->handle, \CURLINFO_APPCONNECT_TIME)] + \curl_getinfo($easy->handle);
|
||||
$ctx[self::CURL_VERSION_STR] = \curl_version()['version'];
|
||||
$factory->release($easy);
|
||||
// Retry when nothing is present or when curl failed to rewind.
|
||||
if (empty($easy->options['_err_message']) && (!$easy->errno || 65 == $easy->errno)) {
|
||||
return self::retryFailedRewind($handler, $easy, $ctx);
|
||||
}
|
||||
|
||||
return self::createRejection($easy, $ctx);
|
||||
}
|
||||
|
||||
private static function createRejection(EasyHandle $easy, array $ctx): PromiseInterface
|
||||
{
|
||||
static $connectionErrors = [\CURLE_OPERATION_TIMEOUTED => \true, \CURLE_COULDNT_RESOLVE_HOST => \true, \CURLE_COULDNT_CONNECT => \true, \CURLE_SSL_CONNECT_ERROR => \true, \CURLE_GOT_NOTHING => \true];
|
||||
if ($easy->createResponseException) {
|
||||
return P\Create::rejectionFor(new RequestException('An error was encountered while creating the response', $easy->request, $easy->response, $easy->createResponseException, $ctx));
|
||||
}
|
||||
// If an exception was encountered during the onHeaders event, then
|
||||
// return a rejected promise that wraps that exception.
|
||||
if ($easy->onHeadersException) {
|
||||
return P\Create::rejectionFor(new RequestException('An error was encountered during the on_headers event', $easy->request, $easy->response, $easy->onHeadersException, $ctx));
|
||||
}
|
||||
$message = \sprintf('cURL error %s: %s (%s)', $ctx['errno'], $ctx['error'], 'see https://curl.haxx.se/libcurl/c/libcurl-errors.html');
|
||||
$uriString = (string) $easy->request->getUri();
|
||||
if ('' !== $uriString && \false === \strpos($ctx['error'], $uriString)) {
|
||||
$message .= \sprintf(' for %s', $uriString);
|
||||
}
|
||||
// Create a connection exception if it was a specific error code.
|
||||
$error = isset($connectionErrors[$easy->errno]) ? new ConnectException($message, $easy->request, null, $ctx) : new RequestException($message, $easy->request, $easy->response, null, $ctx);
|
||||
|
||||
return P\Create::rejectionFor($error);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<int|string, mixed>
|
||||
*/
|
||||
private function getDefaultConf(EasyHandle $easy): array
|
||||
{
|
||||
$conf = ['_headers' => $easy->request->getHeaders(), \CURLOPT_CUSTOMREQUEST => $easy->request->getMethod(), \CURLOPT_URL => (string) $easy->request->getUri()->withFragment(''), \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 300];
|
||||
if (\defined('CURLOPT_PROTOCOLS')) {
|
||||
$conf[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS;
|
||||
}
|
||||
$version = $easy->request->getProtocolVersion();
|
||||
if (1.1 == $version) {
|
||||
$conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1;
|
||||
} elseif (2.0 == $version) {
|
||||
$conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0;
|
||||
} else {
|
||||
$conf[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0;
|
||||
}
|
||||
|
||||
return $conf;
|
||||
}
|
||||
|
||||
private function applyMethod(EasyHandle $easy, array &$conf): void
|
||||
{
|
||||
$body = $easy->request->getBody();
|
||||
$size = $body->getSize();
|
||||
if (null === $size || $size > 0) {
|
||||
$this->applyBody($easy->request, $easy->options, $conf);
|
||||
|
||||
return;
|
||||
}
|
||||
$method = $easy->request->getMethod();
|
||||
if ('PUT' === $method || 'POST' === $method) {
|
||||
// See https://tools.ietf.org/html/rfc7230#section-3.3.2
|
||||
if (!$easy->request->hasHeader('Content-Length')) {
|
||||
$conf[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0';
|
||||
}
|
||||
} elseif ('HEAD' === $method) {
|
||||
$conf[\CURLOPT_NOBODY] = \true;
|
||||
unset($conf[\CURLOPT_WRITEFUNCTION], $conf[\CURLOPT_READFUNCTION], $conf[\CURLOPT_FILE], $conf[\CURLOPT_INFILE]);
|
||||
}
|
||||
}
|
||||
|
||||
private function applyBody(RequestInterface $request, array $options, array &$conf): void
|
||||
{
|
||||
$size = $request->hasHeader('Content-Length') ? (int) $request->getHeaderLine('Content-Length') : null;
|
||||
// Send the body as a string if the size is less than 1MB OR if the
|
||||
// [curl][body_as_string] request value is set.
|
||||
if (null !== $size && $size < 1000000 || !empty($options['_body_as_string'])) {
|
||||
$conf[\CURLOPT_POSTFIELDS] = (string) $request->getBody();
|
||||
// Don't duplicate the Content-Length header
|
||||
$this->removeHeader('Content-Length', $conf);
|
||||
$this->removeHeader('Transfer-Encoding', $conf);
|
||||
} else {
|
||||
$conf[\CURLOPT_UPLOAD] = \true;
|
||||
if (null !== $size) {
|
||||
$conf[\CURLOPT_INFILESIZE] = $size;
|
||||
$this->removeHeader('Content-Length', $conf);
|
||||
}
|
||||
$body = $request->getBody();
|
||||
if ($body->isSeekable()) {
|
||||
$body->rewind();
|
||||
}
|
||||
$conf[\CURLOPT_READFUNCTION] = static function ($ch, $fd, $length) use ($body) {
|
||||
return $body->read($length);
|
||||
};
|
||||
}
|
||||
// If the Expect header is not present, prevent curl from adding it
|
||||
if (!$request->hasHeader('Expect')) {
|
||||
$conf[\CURLOPT_HTTPHEADER][] = 'Expect:';
|
||||
}
|
||||
// cURL sometimes adds a content-type by default. Prevent this.
|
||||
if (!$request->hasHeader('Content-Type')) {
|
||||
$conf[\CURLOPT_HTTPHEADER][] = 'Content-Type:';
|
||||
}
|
||||
}
|
||||
|
||||
private function applyHeaders(EasyHandle $easy, array &$conf): void
|
||||
{
|
||||
foreach ($conf['_headers'] as $name => $values) {
|
||||
foreach ($values as $value) {
|
||||
$value = (string) $value;
|
||||
if ('' === $value) {
|
||||
// cURL requires a special format for empty headers.
|
||||
// See https://github.com/guzzle/guzzle/issues/1882 for more details.
|
||||
$conf[\CURLOPT_HTTPHEADER][] = "{$name};";
|
||||
} else {
|
||||
$conf[\CURLOPT_HTTPHEADER][] = "{$name}: {$value}";
|
||||
}
|
||||
}
|
||||
}
|
||||
// Remove the Accept header if one was not set
|
||||
if (!$easy->request->hasHeader('Accept')) {
|
||||
$conf[\CURLOPT_HTTPHEADER][] = 'Accept:';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a header from the options array.
|
||||
*
|
||||
* @param string $name Case-insensitive header to remove
|
||||
* @param array $options Array of options to modify
|
||||
*/
|
||||
private function removeHeader(string $name, array &$options): void
|
||||
{
|
||||
foreach (\array_keys($options['_headers']) as $key) {
|
||||
if (!\strcasecmp($key, $name)) {
|
||||
unset($options['_headers'][$key]);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function applyHandlerOptions(EasyHandle $easy, array &$conf): void
|
||||
{
|
||||
$options = $easy->options;
|
||||
if (isset($options['verify'])) {
|
||||
if (\false === $options['verify']) {
|
||||
unset($conf[\CURLOPT_CAINFO]);
|
||||
$conf[\CURLOPT_SSL_VERIFYHOST] = 0;
|
||||
$conf[\CURLOPT_SSL_VERIFYPEER] = \false;
|
||||
} else {
|
||||
$conf[\CURLOPT_SSL_VERIFYHOST] = 2;
|
||||
$conf[\CURLOPT_SSL_VERIFYPEER] = \true;
|
||||
if (\is_string($options['verify'])) {
|
||||
// Throw an error if the file/folder/link path is not valid or doesn't exist.
|
||||
if (!\file_exists($options['verify'])) {
|
||||
throw new \InvalidArgumentException("SSL CA bundle not found: {$options['verify']}");
|
||||
}
|
||||
// If it's a directory or a link to a directory use CURLOPT_CAPATH.
|
||||
// If not, it's probably a file, or a link to a file, so use CURLOPT_CAINFO.
|
||||
if (\is_dir($options['verify']) || \true === \is_link($options['verify']) && ($verifyLink = \readlink($options['verify'])) !== \false && \is_dir($verifyLink)) {
|
||||
$conf[\CURLOPT_CAPATH] = $options['verify'];
|
||||
} else {
|
||||
$conf[\CURLOPT_CAINFO] = $options['verify'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isset($options['curl'][\CURLOPT_ENCODING]) && !empty($options['decode_content'])) {
|
||||
$accept = $easy->request->getHeaderLine('Accept-Encoding');
|
||||
if ($accept) {
|
||||
$conf[\CURLOPT_ENCODING] = $accept;
|
||||
} else {
|
||||
// The empty string enables all available decoders and implicitly
|
||||
// sets a matching 'Accept-Encoding' header.
|
||||
$conf[\CURLOPT_ENCODING] = '';
|
||||
// But as the user did not specify any acceptable encodings we need
|
||||
// to overwrite this implicit header with an empty one.
|
||||
$conf[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:';
|
||||
}
|
||||
}
|
||||
if (!isset($options['sink'])) {
|
||||
// Use a default temp stream if no sink was set.
|
||||
$options['sink'] = \_JchOptimizeVendor\GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'w+');
|
||||
}
|
||||
$sink = $options['sink'];
|
||||
if (!\is_string($sink)) {
|
||||
$sink = \_JchOptimizeVendor\GuzzleHttp\Psr7\Utils::streamFor($sink);
|
||||
} elseif (!\is_dir(\dirname($sink))) {
|
||||
// Ensure that the directory exists before failing in curl.
|
||||
throw new \RuntimeException(\sprintf('Directory %s does not exist for sink value of %s', \dirname($sink), $sink));
|
||||
} else {
|
||||
$sink = new LazyOpenStream($sink, 'w+');
|
||||
}
|
||||
$easy->sink = $sink;
|
||||
$conf[\CURLOPT_WRITEFUNCTION] = static function ($ch, $write) use ($sink): int {
|
||||
return $sink->write($write);
|
||||
};
|
||||
$timeoutRequiresNoSignal = \false;
|
||||
if (isset($options['timeout'])) {
|
||||
$timeoutRequiresNoSignal |= $options['timeout'] < 1;
|
||||
$conf[\CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000;
|
||||
}
|
||||
// CURL default value is CURL_IPRESOLVE_WHATEVER
|
||||
if (isset($options['force_ip_resolve'])) {
|
||||
if ('v4' === $options['force_ip_resolve']) {
|
||||
$conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V4;
|
||||
} elseif ('v6' === $options['force_ip_resolve']) {
|
||||
$conf[\CURLOPT_IPRESOLVE] = \CURL_IPRESOLVE_V6;
|
||||
}
|
||||
}
|
||||
if (isset($options['connect_timeout'])) {
|
||||
$timeoutRequiresNoSignal |= $options['connect_timeout'] < 1;
|
||||
$conf[\CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000;
|
||||
}
|
||||
if ($timeoutRequiresNoSignal && 'WIN' !== \strtoupper(\substr(\PHP_OS, 0, 3))) {
|
||||
$conf[\CURLOPT_NOSIGNAL] = \true;
|
||||
}
|
||||
if (isset($options['proxy'])) {
|
||||
if (!\is_array($options['proxy'])) {
|
||||
$conf[\CURLOPT_PROXY] = $options['proxy'];
|
||||
} else {
|
||||
$scheme = $easy->request->getUri()->getScheme();
|
||||
if (isset($options['proxy'][$scheme])) {
|
||||
$host = $easy->request->getUri()->getHost();
|
||||
if (isset($options['proxy']['no']) && Utils::isHostInNoProxy($host, $options['proxy']['no'])) {
|
||||
unset($conf[\CURLOPT_PROXY]);
|
||||
} else {
|
||||
$conf[\CURLOPT_PROXY] = $options['proxy'][$scheme];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($options['cert'])) {
|
||||
$cert = $options['cert'];
|
||||
if (\is_array($cert)) {
|
||||
$conf[\CURLOPT_SSLCERTPASSWD] = $cert[1];
|
||||
$cert = $cert[0];
|
||||
}
|
||||
if (!\file_exists($cert)) {
|
||||
throw new \InvalidArgumentException("SSL certificate not found: {$cert}");
|
||||
}
|
||||
// OpenSSL (versions 0.9.3 and later) also support "P12" for PKCS#12-encoded files.
|
||||
// see https://curl.se/libcurl/c/CURLOPT_SSLCERTTYPE.html
|
||||
$ext = \pathinfo($cert, \PATHINFO_EXTENSION);
|
||||
if (\preg_match('#^(der|p12)$#i', $ext)) {
|
||||
$conf[\CURLOPT_SSLCERTTYPE] = \strtoupper($ext);
|
||||
}
|
||||
$conf[\CURLOPT_SSLCERT] = $cert;
|
||||
}
|
||||
if (isset($options['ssl_key'])) {
|
||||
if (\is_array($options['ssl_key'])) {
|
||||
if (2 === \count($options['ssl_key'])) {
|
||||
[$sslKey, $conf[\CURLOPT_SSLKEYPASSWD]] = $options['ssl_key'];
|
||||
} else {
|
||||
[$sslKey] = $options['ssl_key'];
|
||||
}
|
||||
}
|
||||
$sslKey = $sslKey ?? $options['ssl_key'];
|
||||
if (!\file_exists($sslKey)) {
|
||||
throw new \InvalidArgumentException("SSL private key not found: {$sslKey}");
|
||||
}
|
||||
$conf[\CURLOPT_SSLKEY] = $sslKey;
|
||||
}
|
||||
if (isset($options['progress'])) {
|
||||
$progress = $options['progress'];
|
||||
if (!\is_callable($progress)) {
|
||||
throw new \InvalidArgumentException('progress client option must be callable');
|
||||
}
|
||||
$conf[\CURLOPT_NOPROGRESS] = \false;
|
||||
$conf[\CURLOPT_PROGRESSFUNCTION] = static function ($resource, int $downloadSize, int $downloaded, int $uploadSize, int $uploaded) use ($progress) {
|
||||
$progress($downloadSize, $downloaded, $uploadSize, $uploaded);
|
||||
};
|
||||
}
|
||||
if (!empty($options['debug'])) {
|
||||
$conf[\CURLOPT_STDERR] = Utils::debugResource($options['debug']);
|
||||
$conf[\CURLOPT_VERBOSE] = \true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function ensures that a response was set on a transaction. If one
|
||||
* was not set, then the request is retried if possible. This error
|
||||
* typically means you are sending a payload, curl encountered a
|
||||
* "Connection died, retrying a fresh connect" error, tried to rewind the
|
||||
* stream, and then encountered a "necessary data rewind wasn't possible"
|
||||
* error, causing the request to be sent through curl_multi_info_read()
|
||||
* without an error status.
|
||||
*
|
||||
* @param callable(RequestInterface, array): PromiseInterface $handler
|
||||
*/
|
||||
private static function retryFailedRewind(callable $handler, EasyHandle $easy, array $ctx): PromiseInterface
|
||||
{
|
||||
try {
|
||||
// Only rewind if the body has been read from.
|
||||
$body = $easy->request->getBody();
|
||||
if ($body->tell() > 0) {
|
||||
$body->rewind();
|
||||
}
|
||||
} catch (\RuntimeException $e) {
|
||||
$ctx['error'] = 'The connection unexpectedly failed without providing an error. The request would have been retried, but attempting to rewind the request body failed. Exception: '.$e;
|
||||
|
||||
return self::createRejection($easy, $ctx);
|
||||
}
|
||||
// Retry no more than 3 times before giving up.
|
||||
if (!isset($easy->options['_curl_retries'])) {
|
||||
$easy->options['_curl_retries'] = 1;
|
||||
} elseif (2 == $easy->options['_curl_retries']) {
|
||||
$ctx['error'] = 'The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information.';
|
||||
|
||||
return self::createRejection($easy, $ctx);
|
||||
} else {
|
||||
++$easy->options['_curl_retries'];
|
||||
}
|
||||
|
||||
return $handler($easy->request, $easy->options);
|
||||
}
|
||||
|
||||
private function createHeaderFn(EasyHandle $easy): callable
|
||||
{
|
||||
if (isset($easy->options['on_headers'])) {
|
||||
$onHeaders = $easy->options['on_headers'];
|
||||
if (!\is_callable($onHeaders)) {
|
||||
throw new \InvalidArgumentException('on_headers must be callable');
|
||||
}
|
||||
} else {
|
||||
$onHeaders = null;
|
||||
}
|
||||
|
||||
return static function ($ch, $h) use ($onHeaders, $easy, &$startingResponse) {
|
||||
$value = \trim($h);
|
||||
if ('' === $value) {
|
||||
$startingResponse = \true;
|
||||
|
||||
try {
|
||||
$easy->createResponse();
|
||||
} catch (\Exception $e) {
|
||||
$easy->createResponseException = $e;
|
||||
|
||||
return -1;
|
||||
}
|
||||
if (null !== $onHeaders) {
|
||||
try {
|
||||
$onHeaders($easy->response);
|
||||
} catch (\Exception $e) {
|
||||
// Associate the exception with the handle and trigger
|
||||
// a curl header write error by returning 0.
|
||||
$easy->onHeadersException = $e;
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
} elseif ($startingResponse) {
|
||||
$startingResponse = \false;
|
||||
$easy->headers = [$value];
|
||||
} else {
|
||||
$easy->headers[] = $value;
|
||||
}
|
||||
|
||||
return \strlen($h);
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
interface CurlFactoryInterface
|
||||
{
|
||||
/**
|
||||
* Creates a cURL handle resource.
|
||||
*
|
||||
* @param RequestInterface $request Request
|
||||
* @param array $options Transfer options
|
||||
*
|
||||
* @throws \RuntimeException when an option cannot be applied
|
||||
*/
|
||||
public function create(RequestInterface $request, array $options): EasyHandle;
|
||||
|
||||
/**
|
||||
* Release an easy handle, allowing it to be reused or closed.
|
||||
*
|
||||
* This function must call unset on the easy handle's "handle" property.
|
||||
*/
|
||||
public function release(EasyHandle $easy): void;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* HTTP handler that uses cURL easy handles as a transport layer.
|
||||
*
|
||||
* When using the CurlHandler, custom curl options can be specified as an
|
||||
* associative array of curl option constants mapping to values in the
|
||||
* **curl** key of the "client" key of the request.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class CurlHandler
|
||||
{
|
||||
/**
|
||||
* @var CurlFactoryInterface
|
||||
*/
|
||||
private $factory;
|
||||
|
||||
/**
|
||||
* Accepts an associative array of options:.
|
||||
*
|
||||
* - handle_factory: Optional curl factory used to create cURL handles.
|
||||
*
|
||||
* @param array{handle_factory?: ?CurlFactoryInterface} $options Array of options to use with the handler
|
||||
*/
|
||||
public function __construct(array $options = [])
|
||||
{
|
||||
$this->factory = $options['handle_factory'] ?? new CurlFactory(3);
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
if (isset($options['delay'])) {
|
||||
\usleep($options['delay'] * 1000);
|
||||
}
|
||||
$easy = $this->factory->create($request, $options);
|
||||
\curl_exec($easy->handle);
|
||||
$easy->errno = \curl_errno($easy->handle);
|
||||
|
||||
return CurlFactory::finish($this, $easy, $this->factory);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\Promise;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Returns an asynchronous response using curl_multi_* functions.
|
||||
*
|
||||
* When using the CurlMultiHandler, custom curl options can be specified as an
|
||||
* associative array of curl option constants mapping to values in the
|
||||
* **curl** key of the provided request options.
|
||||
*
|
||||
* @property \CurlMultiHandle|resource $_mh Internal use only. Lazy loaded multi-handle.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
#[\AllowDynamicProperties]
|
||||
class CurlMultiHandler
|
||||
{
|
||||
/**
|
||||
* @var CurlFactoryInterface
|
||||
*/
|
||||
private $factory;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $selectTimeout;
|
||||
|
||||
/**
|
||||
* @var int will be higher than 0 when `curl_multi_exec` is still running
|
||||
*/
|
||||
private $active = 0;
|
||||
|
||||
/**
|
||||
* @var array request entry handles, indexed by handle id in `addRequest`
|
||||
*
|
||||
* @see CurlMultiHandler::addRequest
|
||||
*/
|
||||
private $handles = [];
|
||||
|
||||
/**
|
||||
* @var array<int, float> an array of delay times, indexed by handle id in `addRequest`
|
||||
*
|
||||
* @see CurlMultiHandler::addRequest
|
||||
*/
|
||||
private $delays = [];
|
||||
|
||||
/**
|
||||
* @var array<mixed> An associative array of CURLMOPT_* options and corresponding values for curl_multi_setopt()
|
||||
*/
|
||||
private $options = [];
|
||||
|
||||
/**
|
||||
* This handler accepts the following options:.
|
||||
*
|
||||
* - handle_factory: An optional factory used to create curl handles
|
||||
* - select_timeout: Optional timeout (in seconds) to block before timing
|
||||
* out while selecting curl handles. Defaults to 1 second.
|
||||
* - options: An associative array of CURLMOPT_* options and
|
||||
* corresponding values for curl_multi_setopt()
|
||||
*/
|
||||
public function __construct(array $options = [])
|
||||
{
|
||||
$this->factory = $options['handle_factory'] ?? new CurlFactory(50);
|
||||
if (isset($options['select_timeout'])) {
|
||||
$this->selectTimeout = $options['select_timeout'];
|
||||
} elseif ($selectTimeout = Utils::getenv('GUZZLE_CURL_SELECT_TIMEOUT')) {
|
||||
@\trigger_error('Since guzzlehttp/guzzle 7.2.0: Using environment variable GUZZLE_CURL_SELECT_TIMEOUT is deprecated. Use option "select_timeout" instead.', \E_USER_DEPRECATED);
|
||||
$this->selectTimeout = (int) $selectTimeout;
|
||||
} else {
|
||||
$this->selectTimeout = 1;
|
||||
}
|
||||
$this->options = $options['options'] ?? [];
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (isset($this->_mh)) {
|
||||
\curl_multi_close($this->_mh);
|
||||
unset($this->_mh);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return \CurlMultiHandle|resource
|
||||
*
|
||||
* @throws \BadMethodCallException when another field as `_mh` will be gotten
|
||||
* @throws \RuntimeException when curl can not initialize a multi handle
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
if ('_mh' !== $name) {
|
||||
throw new \BadMethodCallException("Can not get other property as '_mh'.");
|
||||
}
|
||||
$multiHandle = \curl_multi_init();
|
||||
if (\false === $multiHandle) {
|
||||
throw new \RuntimeException('Can not initialize curl multi handle.');
|
||||
}
|
||||
$this->_mh = $multiHandle;
|
||||
foreach ($this->options as $option => $value) {
|
||||
// A warning is raised in case of a wrong option.
|
||||
\curl_multi_setopt($this->_mh, $option, $value);
|
||||
}
|
||||
|
||||
return $this->_mh;
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
$easy = $this->factory->create($request, $options);
|
||||
$id = (int) $easy->handle;
|
||||
$promise = new Promise([$this, 'execute'], function () use ($id) {
|
||||
return $this->cancel($id);
|
||||
});
|
||||
$this->addRequest(['easy' => $easy, 'deferred' => $promise]);
|
||||
|
||||
return $promise;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ticks the curl event loop.
|
||||
*/
|
||||
public function tick(): void
|
||||
{
|
||||
// Add any delayed handles if needed.
|
||||
if ($this->delays) {
|
||||
$currentTime = Utils::currentTime();
|
||||
foreach ($this->delays as $id => $delay) {
|
||||
if ($currentTime >= $delay) {
|
||||
unset($this->delays[$id]);
|
||||
\curl_multi_add_handle($this->_mh, $this->handles[$id]['easy']->handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Step through the task queue which may add additional requests.
|
||||
P\Utils::queue()->run();
|
||||
if ($this->active && -1 === \curl_multi_select($this->_mh, $this->selectTimeout)) {
|
||||
// Perform a usleep if a select returns -1.
|
||||
// See: https://bugs.php.net/bug.php?id=61141
|
||||
\usleep(250);
|
||||
}
|
||||
while (\CURLM_CALL_MULTI_PERFORM === \curl_multi_exec($this->_mh, $this->active));
|
||||
|
||||
$this->processMessages();
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs until all outstanding connections have completed.
|
||||
*/
|
||||
public function execute(): void
|
||||
{
|
||||
$queue = P\Utils::queue();
|
||||
while ($this->handles || !$queue->isEmpty()) {
|
||||
// If there are no transfers, then sleep for the next delay
|
||||
if (!$this->active && $this->delays) {
|
||||
\usleep($this->timeToNext());
|
||||
}
|
||||
$this->tick();
|
||||
}
|
||||
}
|
||||
|
||||
private function addRequest(array $entry): void
|
||||
{
|
||||
$easy = $entry['easy'];
|
||||
$id = (int) $easy->handle;
|
||||
$this->handles[$id] = $entry;
|
||||
if (empty($easy->options['delay'])) {
|
||||
\curl_multi_add_handle($this->_mh, $easy->handle);
|
||||
} else {
|
||||
$this->delays[$id] = Utils::currentTime() + $easy->options['delay'] / 1000;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels a handle from sending and removes references to it.
|
||||
*
|
||||
* @param int $id handle ID to cancel and remove
|
||||
*
|
||||
* @return bool true on success, false on failure
|
||||
*/
|
||||
private function cancel($id): bool
|
||||
{
|
||||
if (!\is_int($id)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing an integer to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
// Cannot cancel if it has been processed.
|
||||
if (!isset($this->handles[$id])) {
|
||||
return \false;
|
||||
}
|
||||
$handle = $this->handles[$id]['easy']->handle;
|
||||
unset($this->delays[$id], $this->handles[$id]);
|
||||
\curl_multi_remove_handle($this->_mh, $handle);
|
||||
\curl_close($handle);
|
||||
|
||||
return \true;
|
||||
}
|
||||
|
||||
private function processMessages(): void
|
||||
{
|
||||
while ($done = \curl_multi_info_read($this->_mh)) {
|
||||
if (\CURLMSG_DONE !== $done['msg']) {
|
||||
// if it's not done, then it would be premature to remove the handle. ref https://github.com/guzzle/guzzle/pull/2892#issuecomment-945150216
|
||||
continue;
|
||||
}
|
||||
$id = (int) $done['handle'];
|
||||
\curl_multi_remove_handle($this->_mh, $done['handle']);
|
||||
if (!isset($this->handles[$id])) {
|
||||
// Probably was cancelled.
|
||||
continue;
|
||||
}
|
||||
$entry = $this->handles[$id];
|
||||
unset($this->handles[$id], $this->delays[$id]);
|
||||
$entry['easy']->errno = $done['result'];
|
||||
$entry['deferred']->resolve(CurlFactory::finish($this, $entry['easy'], $this->factory));
|
||||
}
|
||||
}
|
||||
|
||||
private function timeToNext(): int
|
||||
{
|
||||
$currentTime = Utils::currentTime();
|
||||
$nextTime = \PHP_INT_MAX;
|
||||
foreach ($this->delays as $time) {
|
||||
if ($time < $nextTime) {
|
||||
$nextTime = $time;
|
||||
}
|
||||
}
|
||||
|
||||
return (int) \max(0, $nextTime - $currentTime) * 1000000;
|
||||
}
|
||||
}
|
||||
101
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
vendored
Normal file
101
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/EasyHandle.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Psr7\Response;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Represents a cURL easy handle and the data it populates.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class EasyHandle
|
||||
{
|
||||
/**
|
||||
* @var \CurlHandle|resource cURL resource
|
||||
*/
|
||||
public $handle;
|
||||
|
||||
/**
|
||||
* @var StreamInterface Where data is being written
|
||||
*/
|
||||
public $sink;
|
||||
|
||||
/**
|
||||
* @var array Received HTTP headers so far
|
||||
*/
|
||||
public $headers = [];
|
||||
|
||||
/**
|
||||
* @var null|ResponseInterface Received response (if any)
|
||||
*/
|
||||
public $response;
|
||||
|
||||
/**
|
||||
* @var RequestInterface Request being sent
|
||||
*/
|
||||
public $request;
|
||||
|
||||
/**
|
||||
* @var array Request options
|
||||
*/
|
||||
public $options = [];
|
||||
|
||||
/**
|
||||
* @var int cURL error number (if any)
|
||||
*/
|
||||
public $errno = 0;
|
||||
|
||||
/**
|
||||
* @var null|\Throwable Exception during on_headers (if any)
|
||||
*/
|
||||
public $onHeadersException;
|
||||
|
||||
/**
|
||||
* @var null|\Exception Exception during createResponse (if any)
|
||||
*/
|
||||
public $createResponseException;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
$msg = 'handle' === $name ? 'The EasyHandle has been released' : 'Invalid property: '.$name;
|
||||
|
||||
throw new \BadMethodCallException($msg);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attach a response to the easy handle based on the received headers.
|
||||
*
|
||||
* @throws \RuntimeException if no headers have been received or the first
|
||||
* header line is invalid
|
||||
*/
|
||||
public function createResponse(): void
|
||||
{
|
||||
[$ver, $status, $reason, $headers] = HeaderProcessor::parseHeaders($this->headers);
|
||||
$normalizedKeys = Utils::normalizeHeaderKeys($headers);
|
||||
if (!empty($this->options['decode_content']) && isset($normalizedKeys['content-encoding'])) {
|
||||
$headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']];
|
||||
unset($headers[$normalizedKeys['content-encoding']]);
|
||||
if (isset($normalizedKeys['content-length'])) {
|
||||
$headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']];
|
||||
$bodyLength = (int) $this->sink->getSize();
|
||||
if ($bodyLength) {
|
||||
$headers[$normalizedKeys['content-length']] = $bodyLength;
|
||||
} else {
|
||||
unset($headers[$normalizedKeys['content-length']]);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Attach a response to the easy handle with the parsed headers.
|
||||
$this->response = new Response($status, $headers, $this->sink, $ver, $reason);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class HeaderProcessor
|
||||
{
|
||||
/**
|
||||
* Returns the HTTP version, status code, reason phrase, and headers.
|
||||
*
|
||||
* @param string[] $headers
|
||||
*
|
||||
* @return array{0:string, 1:int, 2:?string, 3:array}
|
||||
*
|
||||
* @throws \RuntimeException
|
||||
*/
|
||||
public static function parseHeaders(array $headers): array
|
||||
{
|
||||
if ([] === $headers) {
|
||||
throw new \RuntimeException('Expected a non-empty array of header data');
|
||||
}
|
||||
$parts = \explode(' ', \array_shift($headers), 3);
|
||||
$version = \explode('/', $parts[0])[1] ?? null;
|
||||
if (null === $version) {
|
||||
throw new \RuntimeException('HTTP version missing from header data');
|
||||
}
|
||||
$status = $parts[1] ?? null;
|
||||
if (null === $status) {
|
||||
throw new \RuntimeException('HTTP status code missing from header data');
|
||||
}
|
||||
|
||||
return [$version, (int) $status, $parts[2] ?? null, Utils::headersFromLines($headers)];
|
||||
}
|
||||
}
|
||||
192
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
vendored
Normal file
192
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/MockHandler.php
vendored
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\RequestException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\HandlerStack;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\TransferStats;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Handler that returns responses or throw exceptions from a queue.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class MockHandler implements \Countable
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $queue = [];
|
||||
|
||||
/**
|
||||
* @var null|RequestInterface
|
||||
*/
|
||||
private $lastRequest;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $lastOptions = [];
|
||||
|
||||
/**
|
||||
* @var null|callable
|
||||
*/
|
||||
private $onFulfilled;
|
||||
|
||||
/**
|
||||
* @var null|callable
|
||||
*/
|
||||
private $onRejected;
|
||||
|
||||
/**
|
||||
* The passed in value must be an array of
|
||||
* {@see \Psr\Http\Message\ResponseInterface} objects, Exceptions,
|
||||
* callables, or Promises.
|
||||
*
|
||||
* @param null|array<int, mixed> $queue the parameters to be passed to the append function, as an indexed array
|
||||
* @param null|callable $onFulfilled callback to invoke when the return value is fulfilled
|
||||
* @param null|callable $onRejected callback to invoke when the return value is rejected
|
||||
*/
|
||||
public function __construct(array $queue = null, callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
$this->onFulfilled = $onFulfilled;
|
||||
$this->onRejected = $onRejected;
|
||||
if ($queue) {
|
||||
// array_values included for BC
|
||||
$this->append(...\array_values($queue));
|
||||
}
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
if (!$this->queue) {
|
||||
throw new \OutOfBoundsException('Mock queue is empty');
|
||||
}
|
||||
if (isset($options['delay']) && \is_numeric($options['delay'])) {
|
||||
\usleep((int) $options['delay'] * 1000);
|
||||
}
|
||||
$this->lastRequest = $request;
|
||||
$this->lastOptions = $options;
|
||||
$response = \array_shift($this->queue);
|
||||
if (isset($options['on_headers'])) {
|
||||
if (!\is_callable($options['on_headers'])) {
|
||||
throw new \InvalidArgumentException('on_headers must be callable');
|
||||
}
|
||||
|
||||
try {
|
||||
$options['on_headers']($response);
|
||||
} catch (\Exception $e) {
|
||||
$msg = 'An error was encountered during the on_headers event';
|
||||
$response = new RequestException($msg, $request, $response, $e);
|
||||
}
|
||||
}
|
||||
if (\is_callable($response)) {
|
||||
$response = $response($request, $options);
|
||||
}
|
||||
$response = $response instanceof \Throwable ? P\Create::rejectionFor($response) : P\Create::promiseFor($response);
|
||||
|
||||
return $response->then(function (?ResponseInterface $value) use ($request, $options) {
|
||||
$this->invokeStats($request, $options, $value);
|
||||
if ($this->onFulfilled) {
|
||||
($this->onFulfilled)($value);
|
||||
}
|
||||
if (null !== $value && isset($options['sink'])) {
|
||||
$contents = (string) $value->getBody();
|
||||
$sink = $options['sink'];
|
||||
if (\is_resource($sink)) {
|
||||
\fwrite($sink, $contents);
|
||||
} elseif (\is_string($sink)) {
|
||||
\file_put_contents($sink, $contents);
|
||||
} elseif ($sink instanceof StreamInterface) {
|
||||
$sink->write($contents);
|
||||
}
|
||||
}
|
||||
|
||||
return $value;
|
||||
}, function ($reason) use ($request, $options) {
|
||||
$this->invokeStats($request, $options, null, $reason);
|
||||
if ($this->onRejected) {
|
||||
($this->onRejected)($reason);
|
||||
}
|
||||
|
||||
return P\Create::rejectionFor($reason);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new MockHandler that uses the default handler stack list of
|
||||
* middlewares.
|
||||
*
|
||||
* @param null|array $queue array of responses, callables, or exceptions
|
||||
* @param null|callable $onFulfilled callback to invoke when the return value is fulfilled
|
||||
* @param null|callable $onRejected callback to invoke when the return value is rejected
|
||||
*/
|
||||
public static function createWithMiddleware(array $queue = null, callable $onFulfilled = null, callable $onRejected = null): HandlerStack
|
||||
{
|
||||
return HandlerStack::create(new self($queue, $onFulfilled, $onRejected));
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds one or more variadic requests, exceptions, callables, or promises
|
||||
* to the queue.
|
||||
*
|
||||
* @param mixed ...$values
|
||||
*/
|
||||
public function append(...$values): void
|
||||
{
|
||||
foreach ($values as $value) {
|
||||
if ($value instanceof ResponseInterface || $value instanceof \Throwable || $value instanceof PromiseInterface || \is_callable($value)) {
|
||||
$this->queue[] = $value;
|
||||
} else {
|
||||
throw new \TypeError('Expected a Response, Promise, Throwable or callable. Found '.Utils::describeType($value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last received request.
|
||||
*/
|
||||
public function getLastRequest(): ?RequestInterface
|
||||
{
|
||||
return $this->lastRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the last received request options.
|
||||
*/
|
||||
public function getLastOptions(): array
|
||||
{
|
||||
return $this->lastOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of remaining items in the queue.
|
||||
*/
|
||||
public function count(): int
|
||||
{
|
||||
return \count($this->queue);
|
||||
}
|
||||
|
||||
public function reset(): void
|
||||
{
|
||||
$this->queue = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $reason promise or reason
|
||||
*/
|
||||
private function invokeStats(RequestInterface $request, array $options, ResponseInterface $response = null, $reason = null): void
|
||||
{
|
||||
if (isset($options['on_stats'])) {
|
||||
$transferTime = $options['transfer_time'] ?? 0;
|
||||
$stats = new TransferStats($request, $response, $transferTime, $reason);
|
||||
$options['on_stats']($stats);
|
||||
}
|
||||
}
|
||||
}
|
||||
51
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php
vendored
Normal file
51
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\RequestOptions;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Provides basic proxies for handlers.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class Proxy
|
||||
{
|
||||
/**
|
||||
* Sends synchronous requests to a specific handler while sending all other
|
||||
* requests to another handler.
|
||||
*
|
||||
* @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for normal responses
|
||||
* @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $sync handler used for synchronous responses
|
||||
*
|
||||
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface returns the composed handler
|
||||
*/
|
||||
public static function wrapSync(callable $default, callable $sync): callable
|
||||
{
|
||||
return static function (RequestInterface $request, array $options) use ($default, $sync): PromiseInterface {
|
||||
return empty($options[RequestOptions::SYNCHRONOUS]) ? $default($request, $options) : $sync($request, $options);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends streaming requests to a streaming compatible handler while sending
|
||||
* all other requests to a default handler.
|
||||
*
|
||||
* This, for example, could be useful for taking advantage of the
|
||||
* performance benefits of curl while still supporting true streaming
|
||||
* through the StreamHandler.
|
||||
*
|
||||
* @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $default Handler used for non-streaming responses
|
||||
* @param callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface $streaming Handler used for streaming responses
|
||||
*
|
||||
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface returns the composed handler
|
||||
*/
|
||||
public static function wrapStreaming(callable $default, callable $streaming): callable
|
||||
{
|
||||
return static function (RequestInterface $request, array $options) use ($default, $streaming): PromiseInterface {
|
||||
return empty($options['stream']) ? $default($request, $options) : $streaming($request, $options);
|
||||
};
|
||||
}
|
||||
}
|
||||
485
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
vendored
Normal file
485
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php
vendored
Normal file
@@ -0,0 +1,485 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Handler;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\ConnectException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\RequestException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\FulfilledPromise;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
use _JchOptimizeVendor\GuzzleHttp\TransferStats;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Utils;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* HTTP handler that uses PHP's HTTP stream wrapper.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class StreamHandler
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $lastHeaders = [];
|
||||
|
||||
/**
|
||||
* Sends an HTTP request.
|
||||
*
|
||||
* @param RequestInterface $request request to send
|
||||
* @param array $options request transfer options
|
||||
*/
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
// Sleep if there is a delay specified.
|
||||
if (isset($options['delay'])) {
|
||||
\usleep($options['delay'] * 1000);
|
||||
}
|
||||
$startTime = isset($options['on_stats']) ? Utils::currentTime() : null;
|
||||
|
||||
try {
|
||||
// Does not support the expect header.
|
||||
$request = $request->withoutHeader('Expect');
|
||||
// Append a content-length header if body size is zero to match
|
||||
// cURL's behavior.
|
||||
if (0 === $request->getBody()->getSize()) {
|
||||
$request = $request->withHeader('Content-Length', '0');
|
||||
}
|
||||
|
||||
return $this->createResponse($request, $options, $this->createStream($request, $options), $startTime);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
throw $e;
|
||||
} catch (\Exception $e) {
|
||||
// Determine if the error was a networking error.
|
||||
$message = $e->getMessage();
|
||||
// This list can probably get more comprehensive.
|
||||
if (\false !== \strpos($message, 'getaddrinfo') || \false !== \strpos($message, 'Connection refused') || \false !== \strpos($message, "couldn't connect to host") || \false !== \strpos($message, 'connection attempt failed')) {
|
||||
$e = new ConnectException($e->getMessage(), $request, $e);
|
||||
} else {
|
||||
$e = RequestException::wrapException($request, $e);
|
||||
}
|
||||
$this->invokeStats($options, $request, $startTime, null, $e);
|
||||
|
||||
return P\Create::rejectionFor($e);
|
||||
}
|
||||
}
|
||||
|
||||
private function invokeStats(array $options, RequestInterface $request, ?float $startTime, ResponseInterface $response = null, \Throwable $error = null): void
|
||||
{
|
||||
if (isset($options['on_stats'])) {
|
||||
$stats = new TransferStats($request, $response, Utils::currentTime() - $startTime, $error, []);
|
||||
$options['on_stats']($stats);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param resource $stream
|
||||
*/
|
||||
private function createResponse(RequestInterface $request, array $options, $stream, ?float $startTime): PromiseInterface
|
||||
{
|
||||
$hdrs = $this->lastHeaders;
|
||||
$this->lastHeaders = [];
|
||||
|
||||
try {
|
||||
[$ver, $status, $reason, $headers] = HeaderProcessor::parseHeaders($hdrs);
|
||||
} catch (\Exception $e) {
|
||||
return P\Create::rejectionFor(new RequestException('An error was encountered while creating the response', $request, null, $e));
|
||||
}
|
||||
[$stream, $headers] = $this->checkDecode($options, $headers, $stream);
|
||||
$stream = Psr7\Utils::streamFor($stream);
|
||||
$sink = $stream;
|
||||
if (\strcasecmp('HEAD', $request->getMethod())) {
|
||||
$sink = $this->createSink($stream, $options);
|
||||
}
|
||||
|
||||
try {
|
||||
$response = new Psr7\Response($status, $headers, $sink, $ver, $reason);
|
||||
} catch (\Exception $e) {
|
||||
return P\Create::rejectionFor(new RequestException('An error was encountered while creating the response', $request, null, $e));
|
||||
}
|
||||
if (isset($options['on_headers'])) {
|
||||
try {
|
||||
$options['on_headers']($response);
|
||||
} catch (\Exception $e) {
|
||||
return P\Create::rejectionFor(new RequestException('An error was encountered during the on_headers event', $request, $response, $e));
|
||||
}
|
||||
}
|
||||
// Do not drain when the request is a HEAD request because they have
|
||||
// no body.
|
||||
if ($sink !== $stream) {
|
||||
$this->drain($stream, $sink, $response->getHeaderLine('Content-Length'));
|
||||
}
|
||||
$this->invokeStats($options, $request, $startTime, $response, null);
|
||||
|
||||
return new FulfilledPromise($response);
|
||||
}
|
||||
|
||||
private function createSink(StreamInterface $stream, array $options): StreamInterface
|
||||
{
|
||||
if (!empty($options['stream'])) {
|
||||
return $stream;
|
||||
}
|
||||
$sink = $options['sink'] ?? Psr7\Utils::tryFopen('php://temp', 'r+');
|
||||
|
||||
return \is_string($sink) ? new Psr7\LazyOpenStream($sink, 'w+') : Psr7\Utils::streamFor($sink);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param resource $stream
|
||||
*/
|
||||
private function checkDecode(array $options, array $headers, $stream): array
|
||||
{
|
||||
// Automatically decode responses when instructed.
|
||||
if (!empty($options['decode_content'])) {
|
||||
$normalizedKeys = Utils::normalizeHeaderKeys($headers);
|
||||
if (isset($normalizedKeys['content-encoding'])) {
|
||||
$encoding = $headers[$normalizedKeys['content-encoding']];
|
||||
if ('gzip' === $encoding[0] || 'deflate' === $encoding[0]) {
|
||||
$stream = new Psr7\InflateStream(Psr7\Utils::streamFor($stream));
|
||||
$headers['x-encoded-content-encoding'] = $headers[$normalizedKeys['content-encoding']];
|
||||
// Remove content-encoding header
|
||||
unset($headers[$normalizedKeys['content-encoding']]);
|
||||
// Fix content-length header
|
||||
if (isset($normalizedKeys['content-length'])) {
|
||||
$headers['x-encoded-content-length'] = $headers[$normalizedKeys['content-length']];
|
||||
$length = (int) $stream->getSize();
|
||||
if (0 === $length) {
|
||||
unset($headers[$normalizedKeys['content-length']]);
|
||||
} else {
|
||||
$headers[$normalizedKeys['content-length']] = [$length];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return [$stream, $headers];
|
||||
}
|
||||
|
||||
/**
|
||||
* Drains the source stream into the "sink" client option.
|
||||
*
|
||||
* @param string $contentLength header specifying the amount of
|
||||
* data to read
|
||||
*
|
||||
* @throws \RuntimeException when the sink option is invalid
|
||||
*/
|
||||
private function drain(StreamInterface $source, StreamInterface $sink, string $contentLength): StreamInterface
|
||||
{
|
||||
// If a content-length header is provided, then stop reading once
|
||||
// that number of bytes has been read. This can prevent infinitely
|
||||
// reading from a stream when dealing with servers that do not honor
|
||||
// Connection: Close headers.
|
||||
Psr7\Utils::copyToStream($source, $sink, \strlen($contentLength) > 0 && (int) $contentLength > 0 ? (int) $contentLength : -1);
|
||||
$sink->seek(0);
|
||||
$source->close();
|
||||
|
||||
return $sink;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a resource and check to ensure it was created successfully.
|
||||
*
|
||||
* @param callable $callback Callable that returns stream resource
|
||||
*
|
||||
* @return resource
|
||||
*
|
||||
* @throws \RuntimeException on error
|
||||
*/
|
||||
private function createResource(callable $callback)
|
||||
{
|
||||
$errors = [];
|
||||
\set_error_handler(static function ($_, $msg, $file, $line) use (&$errors): bool {
|
||||
$errors[] = ['message' => $msg, 'file' => $file, 'line' => $line];
|
||||
|
||||
return \true;
|
||||
});
|
||||
|
||||
try {
|
||||
$resource = $callback();
|
||||
} finally {
|
||||
\restore_error_handler();
|
||||
}
|
||||
if (!$resource) {
|
||||
$message = 'Error creating resource: ';
|
||||
foreach ($errors as $err) {
|
||||
foreach ($err as $key => $value) {
|
||||
$message .= "[{$key}] {$value}".\PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
throw new \RuntimeException(\trim($message));
|
||||
}
|
||||
|
||||
return $resource;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return resource
|
||||
*/
|
||||
private function createStream(RequestInterface $request, array $options)
|
||||
{
|
||||
static $methods;
|
||||
if (!$methods) {
|
||||
$methods = \array_flip(\get_class_methods(__CLASS__));
|
||||
}
|
||||
if (!\in_array($request->getUri()->getScheme(), ['http', 'https'])) {
|
||||
throw new RequestException(\sprintf("The scheme '%s' is not supported.", $request->getUri()->getScheme()), $request);
|
||||
}
|
||||
// HTTP/1.1 streams using the PHP stream wrapper require a
|
||||
// Connection: close header
|
||||
if ('1.1' == $request->getProtocolVersion() && !$request->hasHeader('Connection')) {
|
||||
$request = $request->withHeader('Connection', 'close');
|
||||
}
|
||||
// Ensure SSL is verified by default
|
||||
if (!isset($options['verify'])) {
|
||||
$options['verify'] = \true;
|
||||
}
|
||||
$params = [];
|
||||
$context = $this->getDefaultContext($request);
|
||||
if (isset($options['on_headers']) && !\is_callable($options['on_headers'])) {
|
||||
throw new \InvalidArgumentException('on_headers must be callable');
|
||||
}
|
||||
if (!empty($options)) {
|
||||
foreach ($options as $key => $value) {
|
||||
$method = "add_{$key}";
|
||||
if (isset($methods[$method])) {
|
||||
$this->{$method}($request, $context, $value, $params);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isset($options['stream_context'])) {
|
||||
if (!\is_array($options['stream_context'])) {
|
||||
throw new \InvalidArgumentException('stream_context must be an array');
|
||||
}
|
||||
$context = \array_replace_recursive($context, $options['stream_context']);
|
||||
}
|
||||
// Microsoft NTLM authentication only supported with curl handler
|
||||
if (isset($options['auth'][2]) && 'ntlm' === $options['auth'][2]) {
|
||||
throw new \InvalidArgumentException('Microsoft NTLM authentication only supported with curl handler');
|
||||
}
|
||||
$uri = $this->resolveHost($request, $options);
|
||||
$contextResource = $this->createResource(static function () use ($context, $params) {
|
||||
return \stream_context_create($context, $params);
|
||||
});
|
||||
|
||||
return $this->createResource(function () use ($uri, &$http_response_header, $contextResource, $context, $options, $request) {
|
||||
$resource = @\fopen((string) $uri, 'r', \false, $contextResource);
|
||||
$this->lastHeaders = $http_response_header ?? [];
|
||||
if (\false === $resource) {
|
||||
throw new ConnectException(\sprintf('Connection refused for URI %s', $uri), $request, null, $context);
|
||||
}
|
||||
if (isset($options['read_timeout'])) {
|
||||
$readTimeout = $options['read_timeout'];
|
||||
$sec = (int) $readTimeout;
|
||||
$usec = ($readTimeout - $sec) * 100000;
|
||||
\stream_set_timeout($resource, $sec, $usec);
|
||||
}
|
||||
|
||||
return $resource;
|
||||
});
|
||||
}
|
||||
|
||||
private function resolveHost(RequestInterface $request, array $options): UriInterface
|
||||
{
|
||||
$uri = $request->getUri();
|
||||
if (isset($options['force_ip_resolve']) && !\filter_var($uri->getHost(), \FILTER_VALIDATE_IP)) {
|
||||
if ('v4' === $options['force_ip_resolve']) {
|
||||
$records = \dns_get_record($uri->getHost(), \DNS_A);
|
||||
if (\false === $records || !isset($records[0]['ip'])) {
|
||||
throw new ConnectException(\sprintf("Could not resolve IPv4 address for host '%s'", $uri->getHost()), $request);
|
||||
}
|
||||
|
||||
return $uri->withHost($records[0]['ip']);
|
||||
}
|
||||
if ('v6' === $options['force_ip_resolve']) {
|
||||
$records = \dns_get_record($uri->getHost(), \DNS_AAAA);
|
||||
if (\false === $records || !isset($records[0]['ipv6'])) {
|
||||
throw new ConnectException(\sprintf("Could not resolve IPv6 address for host '%s'", $uri->getHost()), $request);
|
||||
}
|
||||
|
||||
return $uri->withHost('['.$records[0]['ipv6'].']');
|
||||
}
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
private function getDefaultContext(RequestInterface $request): array
|
||||
{
|
||||
$headers = '';
|
||||
foreach ($request->getHeaders() as $name => $value) {
|
||||
foreach ($value as $val) {
|
||||
$headers .= "{$name}: {$val}\r\n";
|
||||
}
|
||||
}
|
||||
$context = ['http' => ['method' => $request->getMethod(), 'header' => $headers, 'protocol_version' => $request->getProtocolVersion(), 'ignore_errors' => \true, 'follow_location' => 0], 'ssl' => ['peer_name' => $request->getUri()->getHost()]];
|
||||
$body = (string) $request->getBody();
|
||||
if ('' !== $body) {
|
||||
$context['http']['content'] = $body;
|
||||
// Prevent the HTTP handler from adding a Content-Type header.
|
||||
if (!$request->hasHeader('Content-Type')) {
|
||||
$context['http']['header'] .= "Content-Type:\r\n";
|
||||
}
|
||||
}
|
||||
$context['http']['header'] = \rtrim($context['http']['header']);
|
||||
|
||||
return $context;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_proxy(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
$uri = null;
|
||||
if (!\is_array($value)) {
|
||||
$uri = $value;
|
||||
} else {
|
||||
$scheme = $request->getUri()->getScheme();
|
||||
if (isset($value[$scheme])) {
|
||||
if (!isset($value['no']) || !Utils::isHostInNoProxy($request->getUri()->getHost(), $value['no'])) {
|
||||
$uri = $value[$scheme];
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$uri) {
|
||||
return;
|
||||
}
|
||||
$parsed = $this->parse_proxy($uri);
|
||||
$options['http']['proxy'] = $parsed['proxy'];
|
||||
if ($parsed['auth']) {
|
||||
if (!isset($options['http']['header'])) {
|
||||
$options['http']['header'] = [];
|
||||
}
|
||||
$options['http']['header'] .= "\r\nProxy-Authorization: {$parsed['auth']}";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses the given proxy URL to make it compatible with the format PHP's stream context expects.
|
||||
*/
|
||||
private function parse_proxy(string $url): array
|
||||
{
|
||||
$parsed = \parse_url($url);
|
||||
if (\false !== $parsed && isset($parsed['scheme']) && 'http' === $parsed['scheme']) {
|
||||
if (isset($parsed['host'], $parsed['port'])) {
|
||||
$auth = null;
|
||||
if (isset($parsed['user'], $parsed['pass'])) {
|
||||
$auth = \base64_encode("{$parsed['user']}:{$parsed['pass']}");
|
||||
}
|
||||
|
||||
return ['proxy' => "tcp://{$parsed['host']}:{$parsed['port']}", 'auth' => $auth ? "Basic {$auth}" : null];
|
||||
}
|
||||
}
|
||||
// Return proxy as-is.
|
||||
return ['proxy' => $url, 'auth' => null];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_timeout(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
if ($value > 0) {
|
||||
$options['http']['timeout'] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_verify(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
if (\false === $value) {
|
||||
$options['ssl']['verify_peer'] = \false;
|
||||
$options['ssl']['verify_peer_name'] = \false;
|
||||
|
||||
return;
|
||||
}
|
||||
if (\is_string($value)) {
|
||||
$options['ssl']['cafile'] = $value;
|
||||
if (!\file_exists($value)) {
|
||||
throw new \RuntimeException("SSL CA bundle not found: {$value}");
|
||||
}
|
||||
} elseif (\true !== $value) {
|
||||
throw new \InvalidArgumentException('Invalid verify request option');
|
||||
}
|
||||
$options['ssl']['verify_peer'] = \true;
|
||||
$options['ssl']['verify_peer_name'] = \true;
|
||||
$options['ssl']['allow_self_signed'] = \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_cert(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
if (\is_array($value)) {
|
||||
$options['ssl']['passphrase'] = $value[1];
|
||||
$value = $value[0];
|
||||
}
|
||||
if (!\file_exists($value)) {
|
||||
throw new \RuntimeException("SSL certificate not found: {$value}");
|
||||
}
|
||||
$options['ssl']['local_cert'] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_progress(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
self::addNotification($params, static function ($code, $a, $b, $c, $transferred, $total) use ($value) {
|
||||
if (\STREAM_NOTIFY_PROGRESS == $code) {
|
||||
// The upload progress cannot be determined. Use 0 for cURL compatibility:
|
||||
// https://curl.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html
|
||||
$value($total, $transferred, 0, 0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value as passed via Request transfer options
|
||||
*/
|
||||
private function add_debug(RequestInterface $request, array &$options, $value, array &$params): void
|
||||
{
|
||||
if (\false === $value) {
|
||||
return;
|
||||
}
|
||||
static $map = [\STREAM_NOTIFY_CONNECT => 'CONNECT', \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', \STREAM_NOTIFY_PROGRESS => 'PROGRESS', \STREAM_NOTIFY_FAILURE => 'FAILURE', \STREAM_NOTIFY_COMPLETED => 'COMPLETED', \STREAM_NOTIFY_RESOLVE => 'RESOLVE'];
|
||||
static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max'];
|
||||
$value = Utils::debugResource($value);
|
||||
$ident = $request->getMethod().' '.$request->getUri()->withFragment('');
|
||||
self::addNotification($params, static function (int $code, ...$passed) use ($ident, $value, $map, $args): void {
|
||||
\fprintf($value, '<%s> [%s] ', $ident, $map[$code]);
|
||||
foreach (\array_filter($passed) as $i => $v) {
|
||||
\fwrite($value, $args[$i].': "'.$v.'" ');
|
||||
}
|
||||
\fwrite($value, "\n");
|
||||
});
|
||||
}
|
||||
|
||||
private static function addNotification(array &$params, callable $notify): void
|
||||
{
|
||||
// Wrap the existing function if needed.
|
||||
if (!isset($params['notification'])) {
|
||||
$params['notification'] = $notify;
|
||||
} else {
|
||||
$params['notification'] = self::callArray([$params['notification'], $notify]);
|
||||
}
|
||||
}
|
||||
|
||||
private static function callArray(array $functions): callable
|
||||
{
|
||||
return static function (...$args) use ($functions) {
|
||||
foreach ($functions as $fn) {
|
||||
$fn(...$args);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
261
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/HandlerStack.php
vendored
Normal file
261
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/HandlerStack.php
vendored
Normal file
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Creates a composed Guzzle handler function by stacking middlewares on top of
|
||||
* an HTTP handler function.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class HandlerStack
|
||||
{
|
||||
/**
|
||||
* @var null|(callable(RequestInterface, array): PromiseInterface)
|
||||
*/
|
||||
private $handler;
|
||||
|
||||
/**
|
||||
* @var array{(callable(callable(RequestInterface, array): PromiseInterface): callable), (null|string)}[]
|
||||
*/
|
||||
private $stack = [];
|
||||
|
||||
/**
|
||||
* @var null|(callable(RequestInterface, array): PromiseInterface)
|
||||
*/
|
||||
private $cached;
|
||||
|
||||
/**
|
||||
* @param null|(callable(RequestInterface, array): PromiseInterface) $handler underlying HTTP handler
|
||||
*/
|
||||
public function __construct(callable $handler = null)
|
||||
{
|
||||
$this->handler = $handler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes the handler stack as a composed handler.
|
||||
*
|
||||
* @return PromiseInterface|ResponseInterface
|
||||
*/
|
||||
public function __invoke(RequestInterface $request, array $options)
|
||||
{
|
||||
$handler = $this->resolve();
|
||||
|
||||
return $handler($request, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Dumps a string representation of the stack.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
$depth = 0;
|
||||
$stack = [];
|
||||
if (null !== $this->handler) {
|
||||
$stack[] = '0) Handler: '.$this->debugCallable($this->handler);
|
||||
}
|
||||
$result = '';
|
||||
foreach (\array_reverse($this->stack) as $tuple) {
|
||||
++$depth;
|
||||
$str = "{$depth}) Name: '{$tuple[1]}', ";
|
||||
$str .= 'Function: '.$this->debugCallable($tuple[0]);
|
||||
$result = "> {$str}\n{$result}";
|
||||
$stack[] = $str;
|
||||
}
|
||||
foreach (\array_keys($stack) as $k) {
|
||||
$result .= "< {$stack[$k]}\n";
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a default handler stack that can be used by clients.
|
||||
*
|
||||
* The returned handler will wrap the provided handler or use the most
|
||||
* appropriate default handler for your system. The returned HandlerStack has
|
||||
* support for cookies, redirects, HTTP error exceptions, and preparing a body
|
||||
* before sending.
|
||||
*
|
||||
* The returned handler stack can be passed to a client in the "handler"
|
||||
* option.
|
||||
*
|
||||
* @param null|(callable(RequestInterface, array): PromiseInterface) $handler HTTP handler function to use with the stack. If no
|
||||
* handler is provided, the best handler for your
|
||||
* system will be utilized.
|
||||
*/
|
||||
public static function create(?callable $handler = null): self
|
||||
{
|
||||
$stack = new self($handler ?: Utils::chooseHandler());
|
||||
$stack->push(Middleware::httpErrors(), 'http_errors');
|
||||
$stack->push(Middleware::redirect(), 'allow_redirects');
|
||||
$stack->push(Middleware::cookies(), 'cookies');
|
||||
$stack->push(Middleware::prepareBody(), 'prepare_body');
|
||||
|
||||
return $stack;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the HTTP handler that actually returns a promise.
|
||||
*
|
||||
* @param callable(RequestInterface, array): PromiseInterface $handler accepts a request and array of options and
|
||||
* returns a Promise
|
||||
*/
|
||||
public function setHandler(callable $handler): void
|
||||
{
|
||||
$this->handler = $handler;
|
||||
$this->cached = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the builder has a handler.
|
||||
*/
|
||||
public function hasHandler(): bool
|
||||
{
|
||||
return null !== $this->handler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Unshift a middleware to the bottom of the stack.
|
||||
*
|
||||
* @param callable(callable): callable $middleware Middleware function
|
||||
* @param string $name name to register for this middleware
|
||||
*/
|
||||
public function unshift(callable $middleware, ?string $name = null): void
|
||||
{
|
||||
\array_unshift($this->stack, [$middleware, $name]);
|
||||
$this->cached = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Push a middleware to the top of the stack.
|
||||
*
|
||||
* @param callable(callable): callable $middleware Middleware function
|
||||
* @param string $name name to register for this middleware
|
||||
*/
|
||||
public function push(callable $middleware, string $name = ''): void
|
||||
{
|
||||
$this->stack[] = [$middleware, $name];
|
||||
$this->cached = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a middleware before another middleware by name.
|
||||
*
|
||||
* @param string $findName Middleware to find
|
||||
* @param callable(callable): callable $middleware Middleware function
|
||||
* @param string $withName name to register for this middleware
|
||||
*/
|
||||
public function before(string $findName, callable $middleware, string $withName = ''): void
|
||||
{
|
||||
$this->splice($findName, $withName, $middleware, \true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a middleware after another middleware by name.
|
||||
*
|
||||
* @param string $findName Middleware to find
|
||||
* @param callable(callable): callable $middleware Middleware function
|
||||
* @param string $withName name to register for this middleware
|
||||
*/
|
||||
public function after(string $findName, callable $middleware, string $withName = ''): void
|
||||
{
|
||||
$this->splice($findName, $withName, $middleware, \false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a middleware by instance or name from the stack.
|
||||
*
|
||||
* @param callable|string $remove middleware to remove by instance or name
|
||||
*/
|
||||
public function remove($remove): void
|
||||
{
|
||||
if (!\is_string($remove) && !\is_callable($remove)) {
|
||||
trigger_deprecation('guzzlehttp/guzzle', '7.4', 'Not passing a callable or string to %s::%s() is deprecated and will cause an error in 8.0.', __CLASS__, __FUNCTION__);
|
||||
}
|
||||
$this->cached = null;
|
||||
$idx = \is_callable($remove) ? 0 : 1;
|
||||
$this->stack = \array_values(\array_filter($this->stack, static function ($tuple) use ($idx, $remove) {
|
||||
return $tuple[$idx] !== $remove;
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Compose the middleware and handler into a single callable function.
|
||||
*
|
||||
* @return callable(RequestInterface, array): PromiseInterface
|
||||
*/
|
||||
public function resolve(): callable
|
||||
{
|
||||
if (null === $this->cached) {
|
||||
if (($prev = $this->handler) === null) {
|
||||
throw new \LogicException('No handler has been specified');
|
||||
}
|
||||
foreach (\array_reverse($this->stack) as $fn) {
|
||||
/** @var callable(RequestInterface, array): PromiseInterface $prev */
|
||||
$prev = $fn[0]($prev);
|
||||
}
|
||||
$this->cached = $prev;
|
||||
}
|
||||
|
||||
return $this->cached;
|
||||
}
|
||||
|
||||
private function findByName(string $name): int
|
||||
{
|
||||
foreach ($this->stack as $k => $v) {
|
||||
if ($v[1] === $name) {
|
||||
return $k;
|
||||
}
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException("Middleware not found: {$name}");
|
||||
}
|
||||
|
||||
/**
|
||||
* Splices a function into the middleware list at a specific position.
|
||||
*/
|
||||
private function splice(string $findName, string $withName, callable $middleware, bool $before): void
|
||||
{
|
||||
$this->cached = null;
|
||||
$idx = $this->findByName($findName);
|
||||
$tuple = [$middleware, $withName];
|
||||
if ($before) {
|
||||
if (0 === $idx) {
|
||||
\array_unshift($this->stack, $tuple);
|
||||
} else {
|
||||
$replacement = [$tuple, $this->stack[$idx]];
|
||||
\array_splice($this->stack, $idx, 1, $replacement);
|
||||
}
|
||||
} elseif ($idx === \count($this->stack) - 1) {
|
||||
$this->stack[] = $tuple;
|
||||
} else {
|
||||
$replacement = [$this->stack[$idx], $tuple];
|
||||
\array_splice($this->stack, $idx, 1, $replacement);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides a debug string for a given callable.
|
||||
*
|
||||
* @param callable|string $fn function to write as a string
|
||||
*/
|
||||
private function debugCallable($fn): string
|
||||
{
|
||||
if (\is_string($fn)) {
|
||||
return "callable({$fn})";
|
||||
}
|
||||
if (\is_array($fn)) {
|
||||
return \is_string($fn[0]) ? "callable({$fn[0]}::{$fn[1]})" : "callable(['".\get_class($fn[0])."', '{$fn[1]}'])";
|
||||
}
|
||||
// @var object $fn
|
||||
return 'callable('.\spl_object_hash($fn).')';
|
||||
}
|
||||
}
|
||||
216
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/MessageFormatter.php
vendored
Normal file
216
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/MessageFormatter.php
vendored
Normal file
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\MessageInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Formats log messages using variable substitutions for requests, responses,
|
||||
* and other transactional data.
|
||||
*
|
||||
* The following variable substitutions are supported:
|
||||
*
|
||||
* - {request}: Full HTTP request message
|
||||
* - {response}: Full HTTP response message
|
||||
* - {ts}: ISO 8601 date in GMT
|
||||
* - {date_iso_8601} ISO 8601 date in GMT
|
||||
* - {date_common_log} Apache common log date using the configured timezone.
|
||||
* - {host}: Host of the request
|
||||
* - {method}: Method of the request
|
||||
* - {uri}: URI of the request
|
||||
* - {version}: Protocol version
|
||||
* - {target}: Request target of the request (path + query + fragment)
|
||||
* - {hostname}: Hostname of the machine that sent the request
|
||||
* - {code}: Status code of the response (if available)
|
||||
* - {phrase}: Reason phrase of the response (if available)
|
||||
* - {error}: Any error messages (if available)
|
||||
* - {req_header_*}: Replace `*` with the lowercased name of a request header to add to the message
|
||||
* - {res_header_*}: Replace `*` with the lowercased name of a response header to add to the message
|
||||
* - {req_headers}: Request headers
|
||||
* - {res_headers}: Response headers
|
||||
* - {req_body}: Request body
|
||||
* - {res_body}: Response body
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class MessageFormatter implements MessageFormatterInterface
|
||||
{
|
||||
/**
|
||||
* Apache Common Log Format.
|
||||
*
|
||||
* @see https://httpd.apache.org/docs/2.4/logs.html#common
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const CLF = '{hostname} {req_header_User-Agent} - [{date_common_log}] "{method} {target} HTTP/{version}" {code} {res_header_Content-Length}';
|
||||
public const DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}";
|
||||
public const SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}';
|
||||
|
||||
/**
|
||||
* @var string Template used to format log messages
|
||||
*/
|
||||
private $template;
|
||||
|
||||
/**
|
||||
* @param string $template Log message template
|
||||
*/
|
||||
public function __construct(?string $template = self::CLF)
|
||||
{
|
||||
$this->template = $template ?: self::CLF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a formatted message string.
|
||||
*
|
||||
* @param RequestInterface $request Request that was sent
|
||||
* @param null|ResponseInterface $response Response that was received
|
||||
* @param null|\Throwable $error Exception that was received
|
||||
*/
|
||||
public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string
|
||||
{
|
||||
$cache = [];
|
||||
// @var string
|
||||
return \preg_replace_callback('/{\\s*([A-Za-z_\\-\\.0-9]+)\\s*}/', function (array $matches) use ($request, $response, $error, &$cache) {
|
||||
if (isset($cache[$matches[1]])) {
|
||||
return $cache[$matches[1]];
|
||||
}
|
||||
$result = '';
|
||||
|
||||
switch ($matches[1]) {
|
||||
case 'request':
|
||||
$result = Psr7\Message::toString($request);
|
||||
|
||||
break;
|
||||
|
||||
case 'response':
|
||||
$result = $response ? Psr7\Message::toString($response) : '';
|
||||
|
||||
break;
|
||||
|
||||
case 'req_headers':
|
||||
$result = \trim($request->getMethod().' '.$request->getRequestTarget()).' HTTP/'.$request->getProtocolVersion()."\r\n".$this->headers($request);
|
||||
|
||||
break;
|
||||
|
||||
case 'res_headers':
|
||||
$result = $response ? \sprintf('HTTP/%s %d %s', $response->getProtocolVersion(), $response->getStatusCode(), $response->getReasonPhrase())."\r\n".$this->headers($response) : 'NULL';
|
||||
|
||||
break;
|
||||
|
||||
case 'req_body':
|
||||
$result = $request->getBody()->__toString();
|
||||
|
||||
break;
|
||||
|
||||
case 'res_body':
|
||||
if (!$response instanceof ResponseInterface) {
|
||||
$result = 'NULL';
|
||||
|
||||
break;
|
||||
}
|
||||
$body = $response->getBody();
|
||||
if (!$body->isSeekable()) {
|
||||
$result = 'RESPONSE_NOT_LOGGEABLE';
|
||||
|
||||
break;
|
||||
}
|
||||
$result = $response->getBody()->__toString();
|
||||
|
||||
break;
|
||||
|
||||
case 'ts':
|
||||
case 'date_iso_8601':
|
||||
$result = \gmdate('c');
|
||||
|
||||
break;
|
||||
|
||||
case 'date_common_log':
|
||||
$result = \date('d/M/Y:H:i:s O');
|
||||
|
||||
break;
|
||||
|
||||
case 'method':
|
||||
$result = $request->getMethod();
|
||||
|
||||
break;
|
||||
|
||||
case 'version':
|
||||
$result = $request->getProtocolVersion();
|
||||
|
||||
break;
|
||||
|
||||
case 'uri':
|
||||
case 'url':
|
||||
$result = $request->getUri()->__toString();
|
||||
|
||||
break;
|
||||
|
||||
case 'target':
|
||||
$result = $request->getRequestTarget();
|
||||
|
||||
break;
|
||||
|
||||
case 'req_version':
|
||||
$result = $request->getProtocolVersion();
|
||||
|
||||
break;
|
||||
|
||||
case 'res_version':
|
||||
$result = $response ? $response->getProtocolVersion() : 'NULL';
|
||||
|
||||
break;
|
||||
|
||||
case 'host':
|
||||
$result = $request->getHeaderLine('Host');
|
||||
|
||||
break;
|
||||
|
||||
case 'hostname':
|
||||
$result = \gethostname();
|
||||
|
||||
break;
|
||||
|
||||
case 'code':
|
||||
$result = $response ? $response->getStatusCode() : 'NULL';
|
||||
|
||||
break;
|
||||
|
||||
case 'phrase':
|
||||
$result = $response ? $response->getReasonPhrase() : 'NULL';
|
||||
|
||||
break;
|
||||
|
||||
case 'error':
|
||||
$result = $error ? $error->getMessage() : 'NULL';
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
// handle prefixed dynamic headers
|
||||
if (0 === \strpos($matches[1], 'req_header_')) {
|
||||
$result = $request->getHeaderLine(\substr($matches[1], 11));
|
||||
} elseif (0 === \strpos($matches[1], 'res_header_')) {
|
||||
$result = $response ? $response->getHeaderLine(\substr($matches[1], 11)) : 'NULL';
|
||||
}
|
||||
}
|
||||
$cache[$matches[1]] = $result;
|
||||
|
||||
return $result;
|
||||
}, $this->template);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get headers from message as string.
|
||||
*/
|
||||
private function headers(MessageInterface $message): string
|
||||
{
|
||||
$result = '';
|
||||
foreach ($message->getHeaders() as $name => $values) {
|
||||
$result .= $name.': '.\implode(', ', $values)."\r\n";
|
||||
}
|
||||
|
||||
return \trim($result);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
interface MessageFormatterInterface
|
||||
{
|
||||
/**
|
||||
* Returns a formatted message string.
|
||||
*
|
||||
* @param RequestInterface $request Request that was sent
|
||||
* @param null|ResponseInterface $response Response that was received
|
||||
* @param null|\Throwable $error Exception that was received
|
||||
*/
|
||||
public function format(RequestInterface $request, ?ResponseInterface $response = null, ?\Throwable $error = null): string;
|
||||
}
|
||||
249
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Middleware.php
vendored
Normal file
249
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Middleware.php
vendored
Normal file
@@ -0,0 +1,249 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Cookie\CookieJarInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\RequestException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
* Functions used to create and wrap handlers with handler middleware.
|
||||
*/
|
||||
final class Middleware
|
||||
{
|
||||
/**
|
||||
* Middleware that adds cookies to requests.
|
||||
*
|
||||
* The options array must be set to a CookieJarInterface in order to use
|
||||
* cookies. This is typically handled for you by a client.
|
||||
*
|
||||
* @return callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function cookies(): callable
|
||||
{
|
||||
return static function (callable $handler): callable {
|
||||
return static function ($request, array $options) use ($handler) {
|
||||
if (empty($options['cookies'])) {
|
||||
return $handler($request, $options);
|
||||
}
|
||||
if (!$options['cookies'] instanceof CookieJarInterface) {
|
||||
throw new \InvalidArgumentException('_JchOptimizeVendor\\cookies must be an instance of GuzzleHttp\\Cookie\\CookieJarInterface');
|
||||
}
|
||||
$cookieJar = $options['cookies'];
|
||||
$request = $cookieJar->withCookieHeader($request);
|
||||
|
||||
return $handler($request, $options)->then(static function (ResponseInterface $response) use ($cookieJar, $request): ResponseInterface {
|
||||
$cookieJar->extractCookies($request, $response);
|
||||
|
||||
return $response;
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that throws exceptions for 4xx or 5xx responses when the
|
||||
* "http_errors" request option is set to true.
|
||||
*
|
||||
* @param null|BodySummarizerInterface $bodySummarizer the body summarizer to use in exception messages
|
||||
*
|
||||
* @return callable(callable): callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function httpErrors(BodySummarizerInterface $bodySummarizer = null): callable
|
||||
{
|
||||
return static function (callable $handler) use ($bodySummarizer): callable {
|
||||
return static function ($request, array $options) use ($handler, $bodySummarizer) {
|
||||
if (empty($options['http_errors'])) {
|
||||
return $handler($request, $options);
|
||||
}
|
||||
|
||||
return $handler($request, $options)->then(static function (ResponseInterface $response) use ($request, $bodySummarizer) {
|
||||
$code = $response->getStatusCode();
|
||||
if ($code < 400) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
throw RequestException::create($request, $response, null, [], $bodySummarizer);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that pushes history data to an ArrayAccess container.
|
||||
*
|
||||
* @param array|\ArrayAccess<int, array> $container container to hold the history (by reference)
|
||||
*
|
||||
* @return callable(callable): callable returns a function that accepts the next handler
|
||||
*
|
||||
* @throws \InvalidArgumentException if container is not an array or ArrayAccess
|
||||
*/
|
||||
public static function history(&$container): callable
|
||||
{
|
||||
if (!\is_array($container) && !$container instanceof \ArrayAccess) {
|
||||
throw new \InvalidArgumentException('history container must be an array or object implementing ArrayAccess');
|
||||
}
|
||||
|
||||
return static function (callable $handler) use (&$container): callable {
|
||||
return static function (RequestInterface $request, array $options) use ($handler, &$container) {
|
||||
return $handler($request, $options)->then(static function ($value) use ($request, &$container, $options) {
|
||||
$container[] = ['request' => $request, 'response' => $value, 'error' => null, 'options' => $options];
|
||||
|
||||
return $value;
|
||||
}, static function ($reason) use ($request, &$container, $options) {
|
||||
$container[] = ['request' => $request, 'response' => null, 'error' => $reason, 'options' => $options];
|
||||
|
||||
return P\Create::rejectionFor($reason);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that invokes a callback before and after sending a request.
|
||||
*
|
||||
* The provided listener cannot modify or alter the response. It simply
|
||||
* "taps" into the chain to be notified before returning the promise. The
|
||||
* before listener accepts a request and options array, and the after
|
||||
* listener accepts a request, options array, and response promise.
|
||||
*
|
||||
* @param callable $before function to invoke before forwarding the request
|
||||
* @param callable $after function invoked after forwarding
|
||||
*
|
||||
* @return callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function tap(callable $before = null, callable $after = null): callable
|
||||
{
|
||||
return static function (callable $handler) use ($before, $after): callable {
|
||||
return static function (RequestInterface $request, array $options) use ($handler, $before, $after) {
|
||||
if ($before) {
|
||||
$before($request, $options);
|
||||
}
|
||||
$response = $handler($request, $options);
|
||||
if ($after) {
|
||||
$after($request, $options, $response);
|
||||
}
|
||||
|
||||
return $response;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that handles request redirects.
|
||||
*
|
||||
* @return callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function redirect(): callable
|
||||
{
|
||||
return static function (callable $handler): RedirectMiddleware {
|
||||
return new RedirectMiddleware($handler);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that retries requests based on the boolean result of
|
||||
* invoking the provided "decider" function.
|
||||
*
|
||||
* If no delay function is provided, a simple implementation of exponential
|
||||
* backoff will be utilized.
|
||||
*
|
||||
* @param callable $decider function that accepts the number of retries,
|
||||
* a request, [response], and [exception] and
|
||||
* returns true if the request is to be retried
|
||||
* @param callable $delay function that accepts the number of retries and
|
||||
* returns the number of milliseconds to delay
|
||||
*
|
||||
* @return callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function retry(callable $decider, callable $delay = null): callable
|
||||
{
|
||||
return static function (callable $handler) use ($decider, $delay): RetryMiddleware {
|
||||
return new RetryMiddleware($decider, $handler, $delay);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that logs requests, responses, and errors using a message
|
||||
* formatter.
|
||||
*
|
||||
* @phpstan-param \Psr\Log\LogLevel::* $logLevel Level at which to log requests.
|
||||
*
|
||||
* @param LoggerInterface $logger logs messages
|
||||
* @param MessageFormatter|MessageFormatterInterface $formatter formatter used to create message strings
|
||||
* @param string $logLevel level at which to log requests
|
||||
*
|
||||
* @return callable returns a function that accepts the next handler
|
||||
*/
|
||||
public static function log(LoggerInterface $logger, $formatter, string $logLevel = 'info'): callable
|
||||
{
|
||||
// To be compatible with Guzzle 7.1.x we need to allow users to pass a MessageFormatter
|
||||
if (!$formatter instanceof MessageFormatter && !$formatter instanceof MessageFormatterInterface) {
|
||||
throw new \LogicException(\sprintf('Argument 2 to %s::log() must be of type %s', self::class, MessageFormatterInterface::class));
|
||||
}
|
||||
|
||||
return static function (callable $handler) use ($logger, $formatter, $logLevel): callable {
|
||||
return static function (RequestInterface $request, array $options = []) use ($handler, $logger, $formatter, $logLevel) {
|
||||
return $handler($request, $options)->then(static function ($response) use ($logger, $request, $formatter, $logLevel): ResponseInterface {
|
||||
$message = $formatter->format($request, $response);
|
||||
$logger->log($logLevel, $message);
|
||||
|
||||
return $response;
|
||||
}, static function ($reason) use ($logger, $request, $formatter): PromiseInterface {
|
||||
$response = $reason instanceof RequestException ? $reason->getResponse() : null;
|
||||
$message = $formatter->format($request, $response, P\Create::exceptionFor($reason));
|
||||
$logger->error($message);
|
||||
|
||||
return P\Create::rejectionFor($reason);
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* This middleware adds a default content-type if possible, a default
|
||||
* content-length or transfer-encoding header, and the expect header.
|
||||
*/
|
||||
public static function prepareBody(): callable
|
||||
{
|
||||
return static function (callable $handler): PrepareBodyMiddleware {
|
||||
return new PrepareBodyMiddleware($handler);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that applies a map function to the request before passing to
|
||||
* the next handler.
|
||||
*
|
||||
* @param callable $fn function that accepts a RequestInterface and returns
|
||||
* a RequestInterface
|
||||
*/
|
||||
public static function mapRequest(callable $fn): callable
|
||||
{
|
||||
return static function (callable $handler) use ($fn): callable {
|
||||
return static function (RequestInterface $request, array $options) use ($handler, $fn) {
|
||||
return $handler($fn($request), $options);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Middleware that applies a map function to the resolved promise's
|
||||
* response.
|
||||
*
|
||||
* @param callable $fn function that accepts a ResponseInterface and
|
||||
* returns a ResponseInterface
|
||||
*/
|
||||
public static function mapResponse(callable $fn): callable
|
||||
{
|
||||
return static function (callable $handler) use ($fn): callable {
|
||||
return static function (RequestInterface $request, array $options) use ($handler, $fn) {
|
||||
return $handler($request, $options)->then($fn);
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
122
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Pool.php
vendored
Normal file
122
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Pool.php
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\EachPromise;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromisorInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Sends an iterator of requests concurrently using a capped pool size.
|
||||
*
|
||||
* The pool will read from an iterator until it is cancelled or until the
|
||||
* iterator is consumed. When a request is yielded, the request is sent after
|
||||
* applying the "request_options" request options (if provided in the ctor).
|
||||
*
|
||||
* When a function is yielded by the iterator, the function is provided the
|
||||
* "request_options" array that should be merged on top of any existing
|
||||
* options, and the function MUST then return a wait-able promise.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class Pool implements PromisorInterface
|
||||
{
|
||||
/**
|
||||
* @var EachPromise
|
||||
*/
|
||||
private $each;
|
||||
|
||||
/**
|
||||
* @param ClientInterface $client client used to send the requests
|
||||
* @param array|\Iterator $requests requests or functions that return
|
||||
* requests to send concurrently
|
||||
* @param array $config Associative array of options
|
||||
* - concurrency: (int) Maximum number of requests to send concurrently
|
||||
* - options: Array of request options to apply to each request.
|
||||
* - fulfilled: (callable) Function to invoke when a request completes.
|
||||
* - rejected: (callable) Function to invoke when a request is rejected.
|
||||
*/
|
||||
public function __construct(ClientInterface $client, $requests, array $config = [])
|
||||
{
|
||||
if (!isset($config['concurrency'])) {
|
||||
$config['concurrency'] = 25;
|
||||
}
|
||||
if (isset($config['options'])) {
|
||||
$opts = $config['options'];
|
||||
unset($config['options']);
|
||||
} else {
|
||||
$opts = [];
|
||||
}
|
||||
$iterable = P\Create::iterFor($requests);
|
||||
$requests = static function () use ($iterable, $client, $opts) {
|
||||
foreach ($iterable as $key => $rfn) {
|
||||
if ($rfn instanceof RequestInterface) {
|
||||
yield $key => $client->sendAsync($rfn, $opts);
|
||||
} elseif (\is_callable($rfn)) {
|
||||
yield $key => $rfn($opts);
|
||||
} else {
|
||||
throw new \InvalidArgumentException('Each value yielded by the iterator must be a Psr7\\Http\\Message\\RequestInterface or a callable that returns a promise that fulfills with a Psr7\\Message\\Http\\ResponseInterface object.');
|
||||
}
|
||||
}
|
||||
};
|
||||
$this->each = new EachPromise($requests(), $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get promise.
|
||||
*/
|
||||
public function promise(): PromiseInterface
|
||||
{
|
||||
return $this->each->promise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends multiple requests concurrently and returns an array of responses
|
||||
* and exceptions that uses the same ordering as the provided requests.
|
||||
*
|
||||
* IMPORTANT: This method keeps every request and response in memory, and
|
||||
* as such, is NOT recommended when sending a large number or an
|
||||
* indeterminate number of requests concurrently.
|
||||
*
|
||||
* @param ClientInterface $client Client used to send the requests
|
||||
* @param array|\Iterator $requests requests to send concurrently
|
||||
* @param array $options Passes through the options available in
|
||||
* {@see \GuzzleHttp\Pool::__construct}
|
||||
*
|
||||
* @return array returns an array containing the response or an exception
|
||||
* in the same order that the requests were sent
|
||||
*
|
||||
* @throws \InvalidArgumentException if the event format is incorrect
|
||||
*/
|
||||
public static function batch(ClientInterface $client, $requests, array $options = []): array
|
||||
{
|
||||
$res = [];
|
||||
self::cmpCallback($options, 'fulfilled', $res);
|
||||
self::cmpCallback($options, 'rejected', $res);
|
||||
$pool = new static($client, $requests, $options);
|
||||
$pool->promise()->wait();
|
||||
\ksort($res);
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute callback(s).
|
||||
*/
|
||||
private static function cmpCallback(array &$options, string $name, array &$results): void
|
||||
{
|
||||
if (!isset($options[$name])) {
|
||||
$options[$name] = static function ($v, $k) use (&$results) {
|
||||
$results[$k] = $v;
|
||||
};
|
||||
} else {
|
||||
$currentFn = $options[$name];
|
||||
$options[$name] = static function ($v, $k) use (&$results, $currentFn) {
|
||||
$currentFn($v, $k);
|
||||
$results[$k] = $v;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
|
||||
/**
|
||||
* Prepares requests that contain a body, adding the Content-Length,
|
||||
* Content-Type, and Expect headers.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class PrepareBodyMiddleware
|
||||
{
|
||||
/**
|
||||
* @var callable(RequestInterface, array): PromiseInterface
|
||||
*/
|
||||
private $nextHandler;
|
||||
|
||||
/**
|
||||
* @param callable(RequestInterface, array): PromiseInterface $nextHandler next handler to invoke
|
||||
*/
|
||||
public function __construct(callable $nextHandler)
|
||||
{
|
||||
$this->nextHandler = $nextHandler;
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
$fn = $this->nextHandler;
|
||||
// Don't do anything if the request has no body.
|
||||
if (0 === $request->getBody()->getSize()) {
|
||||
return $fn($request, $options);
|
||||
}
|
||||
$modify = [];
|
||||
// Add a default content-type if possible.
|
||||
if (!$request->hasHeader('Content-Type')) {
|
||||
if ($uri = $request->getBody()->getMetadata('uri')) {
|
||||
if (\is_string($uri) && ($type = Psr7\MimeType::fromFilename($uri))) {
|
||||
$modify['set_headers']['Content-Type'] = $type;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Add a default content-length or transfer-encoding header.
|
||||
if (!$request->hasHeader('Content-Length') && !$request->hasHeader('Transfer-Encoding')) {
|
||||
$size = $request->getBody()->getSize();
|
||||
if (null !== $size) {
|
||||
$modify['set_headers']['Content-Length'] = $size;
|
||||
} else {
|
||||
$modify['set_headers']['Transfer-Encoding'] = 'chunked';
|
||||
}
|
||||
}
|
||||
// Add the expect header if needed.
|
||||
$this->addExpectHeader($request, $options, $modify);
|
||||
|
||||
return $fn(Psr7\Utils::modifyRequest($request, $modify), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add expect header.
|
||||
*/
|
||||
private function addExpectHeader(RequestInterface $request, array $options, array &$modify): void
|
||||
{
|
||||
// Determine if the Expect header should be used
|
||||
if ($request->hasHeader('Expect')) {
|
||||
return;
|
||||
}
|
||||
$expect = $options['expect'] ?? null;
|
||||
// Return if disabled or if you're not using HTTP/1.1 or HTTP/2.0
|
||||
if (\false === $expect || $request->getProtocolVersion() < 1.1) {
|
||||
return;
|
||||
}
|
||||
// The expect header is unconditionally enabled
|
||||
if (\true === $expect) {
|
||||
$modify['set_headers']['Expect'] = '100-Continue';
|
||||
|
||||
return;
|
||||
}
|
||||
// By default, send the expect header when the payload is > 1mb
|
||||
if (null === $expect) {
|
||||
$expect = 1048576;
|
||||
}
|
||||
// Always add if the body cannot be rewound, the size cannot be
|
||||
// determined, or the size is greater than the cutoff threshold
|
||||
$body = $request->getBody();
|
||||
$size = $body->getSize();
|
||||
if (null === $size || $size >= (int) $expect || !$body->isSeekable()) {
|
||||
$modify['set_headers']['Expect'] = '100-Continue';
|
||||
}
|
||||
}
|
||||
}
|
||||
177
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
vendored
Normal file
177
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\BadResponseException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\TooManyRedirectsException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* Request redirect middleware.
|
||||
*
|
||||
* Apply this middleware like other middleware using
|
||||
* {@see \GuzzleHttp\Middleware::redirect()}.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class RedirectMiddleware
|
||||
{
|
||||
public const HISTORY_HEADER = 'X-Guzzle-Redirect-History';
|
||||
public const STATUS_HISTORY_HEADER = 'X-Guzzle-Redirect-Status-History';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public static $defaultSettings = ['max' => 5, 'protocols' => ['http', 'https'], 'strict' => \false, 'referer' => \false, 'track_redirects' => \false];
|
||||
|
||||
/**
|
||||
* @var callable(RequestInterface, array): PromiseInterface
|
||||
*/
|
||||
private $nextHandler;
|
||||
|
||||
/**
|
||||
* @param callable(RequestInterface, array): PromiseInterface $nextHandler next handler to invoke
|
||||
*/
|
||||
public function __construct(callable $nextHandler)
|
||||
{
|
||||
$this->nextHandler = $nextHandler;
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
$fn = $this->nextHandler;
|
||||
if (empty($options['allow_redirects'])) {
|
||||
return $fn($request, $options);
|
||||
}
|
||||
if (\true === $options['allow_redirects']) {
|
||||
$options['allow_redirects'] = self::$defaultSettings;
|
||||
} elseif (!\is_array($options['allow_redirects'])) {
|
||||
throw new \InvalidArgumentException('allow_redirects must be true, false, or array');
|
||||
} else {
|
||||
// Merge the default settings with the provided settings
|
||||
$options['allow_redirects'] += self::$defaultSettings;
|
||||
}
|
||||
if (empty($options['allow_redirects']['max'])) {
|
||||
return $fn($request, $options);
|
||||
}
|
||||
|
||||
return $fn($request, $options)->then(function (ResponseInterface $response) use ($request, $options) {
|
||||
return $this->checkRedirect($request, $options, $response);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PromiseInterface|ResponseInterface
|
||||
*/
|
||||
public function checkRedirect(RequestInterface $request, array $options, ResponseInterface $response)
|
||||
{
|
||||
if (0 !== \strpos((string) $response->getStatusCode(), '3') || !$response->hasHeader('Location')) {
|
||||
return $response;
|
||||
}
|
||||
$this->guardMax($request, $response, $options);
|
||||
$nextRequest = $this->modifyRequest($request, $options, $response);
|
||||
// If authorization is handled by curl, unset it if URI is cross-origin.
|
||||
if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $nextRequest->getUri()) && \defined('\\CURLOPT_HTTPAUTH')) {
|
||||
unset($options['curl'][\CURLOPT_HTTPAUTH], $options['curl'][\CURLOPT_USERPWD]);
|
||||
}
|
||||
if (isset($options['allow_redirects']['on_redirect'])) {
|
||||
$options['allow_redirects']['on_redirect']($request, $response, $nextRequest->getUri());
|
||||
}
|
||||
$promise = $this($nextRequest, $options);
|
||||
// Add headers to be able to track history of redirects.
|
||||
if (!empty($options['allow_redirects']['track_redirects'])) {
|
||||
return $this->withTracking($promise, (string) $nextRequest->getUri(), $response->getStatusCode());
|
||||
}
|
||||
|
||||
return $promise;
|
||||
}
|
||||
|
||||
public function modifyRequest(RequestInterface $request, array $options, ResponseInterface $response): RequestInterface
|
||||
{
|
||||
// Request modifications to apply.
|
||||
$modify = [];
|
||||
$protocols = $options['allow_redirects']['protocols'];
|
||||
// Use a GET request if this is an entity enclosing request and we are
|
||||
// not forcing RFC compliance, but rather emulating what all browsers
|
||||
// would do.
|
||||
$statusCode = $response->getStatusCode();
|
||||
if (303 == $statusCode || $statusCode <= 302 && !$options['allow_redirects']['strict']) {
|
||||
$safeMethods = ['GET', 'HEAD', 'OPTIONS'];
|
||||
$requestMethod = $request->getMethod();
|
||||
$modify['method'] = \in_array($requestMethod, $safeMethods) ? $requestMethod : 'GET';
|
||||
$modify['body'] = '';
|
||||
}
|
||||
$uri = self::redirectUri($request, $response, $protocols);
|
||||
if (isset($options['idn_conversion']) && \false !== $options['idn_conversion']) {
|
||||
$idnOptions = \true === $options['idn_conversion'] ? \IDNA_DEFAULT : $options['idn_conversion'];
|
||||
$uri = Utils::idnUriConvert($uri, $idnOptions);
|
||||
}
|
||||
$modify['uri'] = $uri;
|
||||
Psr7\Message::rewindBody($request);
|
||||
// Add the Referer header if it is told to do so and only
|
||||
// add the header if we are not redirecting from https to http.
|
||||
if ($options['allow_redirects']['referer'] && $modify['uri']->getScheme() === $request->getUri()->getScheme()) {
|
||||
$uri = $request->getUri()->withUserInfo('');
|
||||
$modify['set_headers']['Referer'] = (string) $uri;
|
||||
} else {
|
||||
$modify['remove_headers'][] = 'Referer';
|
||||
}
|
||||
// Remove Authorization and Cookie headers if URI is cross-origin.
|
||||
if (Psr7\UriComparator::isCrossOrigin($request->getUri(), $modify['uri'])) {
|
||||
$modify['remove_headers'][] = 'Authorization';
|
||||
$modify['remove_headers'][] = 'Cookie';
|
||||
}
|
||||
|
||||
return Psr7\Utils::modifyRequest($request, $modify);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable tracking on promise.
|
||||
*/
|
||||
private function withTracking(PromiseInterface $promise, string $uri, int $statusCode): PromiseInterface
|
||||
{
|
||||
return $promise->then(static function (ResponseInterface $response) use ($uri, $statusCode) {
|
||||
// Note that we are pushing to the front of the list as this
|
||||
// would be an earlier response than what is currently present
|
||||
// in the history header.
|
||||
$historyHeader = $response->getHeader(self::HISTORY_HEADER);
|
||||
$statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
|
||||
\array_unshift($historyHeader, $uri);
|
||||
\array_unshift($statusHeader, (string) $statusCode);
|
||||
|
||||
return $response->withHeader(self::HISTORY_HEADER, $historyHeader)->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check for too many redirects.
|
||||
*
|
||||
* @throws TooManyRedirectsException too many redirects
|
||||
*/
|
||||
private function guardMax(RequestInterface $request, ResponseInterface $response, array &$options): void
|
||||
{
|
||||
$current = $options['__redirect_count'] ?? 0;
|
||||
$options['__redirect_count'] = $current + 1;
|
||||
$max = $options['allow_redirects']['max'];
|
||||
if ($options['__redirect_count'] > $max) {
|
||||
throw new TooManyRedirectsException("Will not follow more than {$max} redirects", $request, $response);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the appropriate URL on the request based on the location header.
|
||||
*/
|
||||
private static function redirectUri(RequestInterface $request, ResponseInterface $response, array $protocols): UriInterface
|
||||
{
|
||||
$location = Psr7\UriResolver::resolve($request->getUri(), new Psr7\Uri($response->getHeaderLine('Location')));
|
||||
// Ensure that the redirect URI is allowed based on the protocols.
|
||||
if (!\in_array($location->getScheme(), $protocols)) {
|
||||
throw new BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response);
|
||||
}
|
||||
|
||||
return $location;
|
||||
}
|
||||
}
|
||||
264
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RequestOptions.php
vendored
Normal file
264
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RequestOptions.php
vendored
Normal file
@@ -0,0 +1,264 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
/**
|
||||
* This class contains a list of built-in Guzzle request options.
|
||||
*
|
||||
* More documentation for each option can be found at http://guzzlephp.org/.
|
||||
*
|
||||
* @see http://docs.guzzlephp.org/en/v6/request-options.html
|
||||
*/
|
||||
final class RequestOptions
|
||||
{
|
||||
/**
|
||||
* allow_redirects: (bool|array) Controls redirect behavior. Pass false
|
||||
* to disable redirects, pass true to enable redirects, pass an
|
||||
* associative to provide custom redirect settings. Defaults to "false".
|
||||
* This option only works if your handler has the RedirectMiddleware. When
|
||||
* passing an associative array, you can provide the following key value
|
||||
* pairs:.
|
||||
*
|
||||
* - max: (int, default=5) maximum number of allowed redirects.
|
||||
* - strict: (bool, default=false) Set to true to use strict redirects
|
||||
* meaning redirect POST requests with POST requests vs. doing what most
|
||||
* browsers do which is redirect POST requests with GET requests
|
||||
* - referer: (bool, default=false) Set to true to enable the Referer
|
||||
* header.
|
||||
* - protocols: (array, default=['http', 'https']) Allowed redirect
|
||||
* protocols.
|
||||
* - on_redirect: (callable) PHP callable that is invoked when a redirect
|
||||
* is encountered. The callable is invoked with the request, the redirect
|
||||
* response that was received, and the effective URI. Any return value
|
||||
* from the on_redirect function is ignored.
|
||||
*/
|
||||
public const ALLOW_REDIRECTS = 'allow_redirects';
|
||||
|
||||
/**
|
||||
* auth: (array) Pass an array of HTTP authentication parameters to use
|
||||
* with the request. The array must contain the username in index [0],
|
||||
* the password in index [1], and you can optionally provide a built-in
|
||||
* authentication type in index [2]. Pass null to disable authentication
|
||||
* for a request.
|
||||
*/
|
||||
public const AUTH = 'auth';
|
||||
|
||||
/**
|
||||
* body: (resource|string|null|int|float|StreamInterface|callable|\Iterator)
|
||||
* Body to send in the request.
|
||||
*/
|
||||
public const BODY = 'body';
|
||||
|
||||
/**
|
||||
* cert: (string|array) Set to a string to specify the path to a file
|
||||
* containing a PEM formatted SSL client side certificate. If a password
|
||||
* is required, then set cert to an array containing the path to the PEM
|
||||
* file in the first array element followed by the certificate password
|
||||
* in the second array element.
|
||||
*/
|
||||
public const CERT = 'cert';
|
||||
|
||||
/**
|
||||
* cookies: (bool|GuzzleHttp\Cookie\CookieJarInterface, default=false)
|
||||
* Specifies whether or not cookies are used in a request or what cookie
|
||||
* jar to use or what cookies to send. This option only works if your
|
||||
* handler has the `cookie` middleware. Valid values are `false` and
|
||||
* an instance of {@see \GuzzleHttp\Cookie\CookieJarInterface}.
|
||||
*/
|
||||
public const COOKIES = 'cookies';
|
||||
|
||||
/**
|
||||
* connect_timeout: (float, default=0) Float describing the number of
|
||||
* seconds to wait while trying to connect to a server. Use 0 to wait
|
||||
* 300 seconds (the default behavior).
|
||||
*/
|
||||
public const CONNECT_TIMEOUT = 'connect_timeout';
|
||||
|
||||
/**
|
||||
* debug: (bool|resource) Set to true or set to a PHP stream returned by
|
||||
* fopen() enable debug output with the HTTP handler used to send a
|
||||
* request.
|
||||
*/
|
||||
public const DEBUG = 'debug';
|
||||
|
||||
/**
|
||||
* decode_content: (bool, default=true) Specify whether or not
|
||||
* Content-Encoding responses (gzip, deflate, etc.) are automatically
|
||||
* decoded.
|
||||
*/
|
||||
public const DECODE_CONTENT = 'decode_content';
|
||||
|
||||
/**
|
||||
* delay: (int) The amount of time to delay before sending in milliseconds.
|
||||
*/
|
||||
public const DELAY = 'delay';
|
||||
|
||||
/**
|
||||
* expect: (bool|integer) Controls the behavior of the
|
||||
* "Expect: 100-Continue" header.
|
||||
*
|
||||
* Set to `true` to enable the "Expect: 100-Continue" header for all
|
||||
* requests that sends a body. Set to `false` to disable the
|
||||
* "Expect: 100-Continue" header for all requests. Set to a number so that
|
||||
* the size of the payload must be greater than the number in order to send
|
||||
* the Expect header. Setting to a number will send the Expect header for
|
||||
* all requests in which the size of the payload cannot be determined or
|
||||
* where the body is not rewindable.
|
||||
*
|
||||
* By default, Guzzle will add the "Expect: 100-Continue" header when the
|
||||
* size of the body of a request is greater than 1 MB and a request is
|
||||
* using HTTP/1.1.
|
||||
*/
|
||||
public const EXPECT = 'expect';
|
||||
|
||||
/**
|
||||
* form_params: (array) Associative array of form field names to values
|
||||
* where each value is a string or array of strings. Sets the Content-Type
|
||||
* header to application/x-www-form-urlencoded when no Content-Type header
|
||||
* is already present.
|
||||
*/
|
||||
public const FORM_PARAMS = 'form_params';
|
||||
|
||||
/**
|
||||
* headers: (array) Associative array of HTTP headers. Each value MUST be
|
||||
* a string or array of strings.
|
||||
*/
|
||||
public const HEADERS = 'headers';
|
||||
|
||||
/**
|
||||
* http_errors: (bool, default=true) Set to false to disable exceptions
|
||||
* when a non- successful HTTP response is received. By default,
|
||||
* exceptions will be thrown for 4xx and 5xx responses. This option only
|
||||
* works if your handler has the `httpErrors` middleware.
|
||||
*/
|
||||
public const HTTP_ERRORS = 'http_errors';
|
||||
|
||||
/**
|
||||
* idn: (bool|int, default=true) A combination of IDNA_* constants for
|
||||
* idn_to_ascii() PHP's function (see "options" parameter). Set to false to
|
||||
* disable IDN support completely, or to true to use the default
|
||||
* configuration (IDNA_DEFAULT constant).
|
||||
*/
|
||||
public const IDN_CONVERSION = 'idn_conversion';
|
||||
|
||||
/**
|
||||
* json: (mixed) Adds JSON data to a request. The provided value is JSON
|
||||
* encoded and a Content-Type header of application/json will be added to
|
||||
* the request if no Content-Type header is already present.
|
||||
*/
|
||||
public const JSON = 'json';
|
||||
|
||||
/**
|
||||
* multipart: (array) Array of associative arrays, each containing a
|
||||
* required "name" key mapping to the form field, name, a required
|
||||
* "contents" key mapping to a StreamInterface|resource|string, an
|
||||
* optional "headers" associative array of custom headers, and an
|
||||
* optional "filename" key mapping to a string to send as the filename in
|
||||
* the part. If no "filename" key is present, then no "filename" attribute
|
||||
* will be added to the part.
|
||||
*/
|
||||
public const MULTIPART = 'multipart';
|
||||
|
||||
/**
|
||||
* on_headers: (callable) A callable that is invoked when the HTTP headers
|
||||
* of the response have been received but the body has not yet begun to
|
||||
* download.
|
||||
*/
|
||||
public const ON_HEADERS = 'on_headers';
|
||||
|
||||
/**
|
||||
* on_stats: (callable) allows you to get access to transfer statistics of
|
||||
* a request and access the lower level transfer details of the handler
|
||||
* associated with your client. ``on_stats`` is a callable that is invoked
|
||||
* when a handler has finished sending a request. The callback is invoked
|
||||
* with transfer statistics about the request, the response received, or
|
||||
* the error encountered. Included in the data is the total amount of time
|
||||
* taken to send the request.
|
||||
*/
|
||||
public const ON_STATS = 'on_stats';
|
||||
|
||||
/**
|
||||
* progress: (callable) Defines a function to invoke when transfer
|
||||
* progress is made. The function accepts the following positional
|
||||
* arguments: the total number of bytes expected to be downloaded, the
|
||||
* number of bytes downloaded so far, the number of bytes expected to be
|
||||
* uploaded, the number of bytes uploaded so far.
|
||||
*/
|
||||
public const PROGRESS = 'progress';
|
||||
|
||||
/**
|
||||
* proxy: (string|array) Pass a string to specify an HTTP proxy, or an
|
||||
* array to specify different proxies for different protocols (where the
|
||||
* key is the protocol and the value is a proxy string).
|
||||
*/
|
||||
public const PROXY = 'proxy';
|
||||
|
||||
/**
|
||||
* query: (array|string) Associative array of query string values to add
|
||||
* to the request. This option uses PHP's http_build_query() to create
|
||||
* the string representation. Pass a string value if you need more
|
||||
* control than what this method provides.
|
||||
*/
|
||||
public const QUERY = 'query';
|
||||
|
||||
/**
|
||||
* sink: (resource|string|StreamInterface) Where the data of the
|
||||
* response is written to. Defaults to a PHP temp stream. Providing a
|
||||
* string will write data to a file by the given name.
|
||||
*/
|
||||
public const SINK = 'sink';
|
||||
|
||||
/**
|
||||
* synchronous: (bool) Set to true to inform HTTP handlers that you intend
|
||||
* on waiting on the response. This can be useful for optimizations. Note
|
||||
* that a promise is still returned if you are using one of the async
|
||||
* client methods.
|
||||
*/
|
||||
public const SYNCHRONOUS = 'synchronous';
|
||||
|
||||
/**
|
||||
* ssl_key: (array|string) Specify the path to a file containing a private
|
||||
* SSL key in PEM format. If a password is required, then set to an array
|
||||
* containing the path to the SSL key in the first array element followed
|
||||
* by the password required for the certificate in the second element.
|
||||
*/
|
||||
public const SSL_KEY = 'ssl_key';
|
||||
|
||||
/**
|
||||
* stream: Set to true to attempt to stream a response rather than
|
||||
* download it all up-front.
|
||||
*/
|
||||
public const STREAM = 'stream';
|
||||
|
||||
/**
|
||||
* verify: (bool|string, default=true) Describes the SSL certificate
|
||||
* verification behavior of a request. Set to true to enable SSL
|
||||
* certificate verification using the system CA bundle when available
|
||||
* (the default). Set to false to disable certificate verification (this
|
||||
* is insecure!). Set to a string to provide the path to a CA bundle on
|
||||
* disk to enable verification using a custom certificate.
|
||||
*/
|
||||
public const VERIFY = 'verify';
|
||||
|
||||
/**
|
||||
* timeout: (float, default=0) Float describing the timeout of the
|
||||
* request in seconds. Use 0 to wait indefinitely (the default behavior).
|
||||
*/
|
||||
public const TIMEOUT = 'timeout';
|
||||
|
||||
/**
|
||||
* read_timeout: (float, default=default_socket_timeout ini setting) Float describing
|
||||
* the body read timeout, for stream requests.
|
||||
*/
|
||||
public const READ_TIMEOUT = 'read_timeout';
|
||||
|
||||
/**
|
||||
* version: (float) Specifies the HTTP protocol version to attempt to use.
|
||||
*/
|
||||
public const VERSION = 'version';
|
||||
|
||||
/**
|
||||
* force_ip_resolve: (bool) Force client to use only ipv4 or ipv6 protocol.
|
||||
*/
|
||||
public const FORCE_IP_RESOLVE = 'force_ip_resolve';
|
||||
}
|
||||
104
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
vendored
Normal file
104
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/RetryMiddleware.php
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise as P;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Promise\PromiseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
|
||||
/**
|
||||
* Middleware that retries requests based on the boolean result of
|
||||
* invoking the provided "decider" function.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class RetryMiddleware
|
||||
{
|
||||
/**
|
||||
* @var callable(RequestInterface, array): PromiseInterface
|
||||
*/
|
||||
private $nextHandler;
|
||||
|
||||
/**
|
||||
* @var callable
|
||||
*/
|
||||
private $decider;
|
||||
|
||||
/**
|
||||
* @var callable(int)
|
||||
*/
|
||||
private $delay;
|
||||
|
||||
/**
|
||||
* @param callable $decider function that accepts the number of retries,
|
||||
* a request, [response], and [exception] and
|
||||
* returns true if the request is to be
|
||||
* retried
|
||||
* @param callable(RequestInterface, array): PromiseInterface $nextHandler next handler to invoke
|
||||
* @param null|(callable(int): int) $delay function that accepts the number of retries
|
||||
* and returns the number of
|
||||
* milliseconds to delay
|
||||
*/
|
||||
public function __construct(callable $decider, callable $nextHandler, callable $delay = null)
|
||||
{
|
||||
$this->decider = $decider;
|
||||
$this->nextHandler = $nextHandler;
|
||||
$this->delay = $delay ?: __CLASS__.'::exponentialDelay';
|
||||
}
|
||||
|
||||
public function __invoke(RequestInterface $request, array $options): PromiseInterface
|
||||
{
|
||||
if (!isset($options['retries'])) {
|
||||
$options['retries'] = 0;
|
||||
}
|
||||
$fn = $this->nextHandler;
|
||||
|
||||
return $fn($request, $options)->then($this->onFulfilled($request, $options), $this->onRejected($request, $options));
|
||||
}
|
||||
|
||||
/**
|
||||
* Default exponential backoff delay function.
|
||||
*
|
||||
* @return int milliseconds
|
||||
*/
|
||||
public static function exponentialDelay(int $retries): int
|
||||
{
|
||||
return (int) \pow(2, $retries - 1) * 1000;
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute fulfilled closure.
|
||||
*/
|
||||
private function onFulfilled(RequestInterface $request, array $options): callable
|
||||
{
|
||||
return function ($value) use ($request, $options) {
|
||||
if (!($this->decider)($options['retries'], $request, $value, null)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $this->doRetry($request, $options, $value);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute rejected closure.
|
||||
*/
|
||||
private function onRejected(RequestInterface $req, array $options): callable
|
||||
{
|
||||
return function ($reason) use ($req, $options) {
|
||||
if (!($this->decider)($options['retries'], $req, null, $reason)) {
|
||||
return P\Create::rejectionFor($reason);
|
||||
}
|
||||
|
||||
return $this->doRetry($req, $options);
|
||||
};
|
||||
}
|
||||
|
||||
private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface
|
||||
{
|
||||
$options['delay'] = ($this->delay)(++$options['retries'], $response, $request);
|
||||
|
||||
return $this($request, $options);
|
||||
}
|
||||
}
|
||||
128
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/TransferStats.php
vendored
Normal file
128
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/TransferStats.php
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\RequestInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\ResponseInterface;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
/**
|
||||
* Represents data at the point after it was transferred either successfully
|
||||
* or after a network error.
|
||||
*/
|
||||
final class TransferStats
|
||||
{
|
||||
/**
|
||||
* @var RequestInterface
|
||||
*/
|
||||
private $request;
|
||||
|
||||
/**
|
||||
* @var null|ResponseInterface
|
||||
*/
|
||||
private $response;
|
||||
|
||||
/**
|
||||
* @var null|float
|
||||
*/
|
||||
private $transferTime;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $handlerStats;
|
||||
|
||||
/**
|
||||
* @var null|mixed
|
||||
*/
|
||||
private $handlerErrorData;
|
||||
|
||||
/**
|
||||
* @param RequestInterface $request request that was sent
|
||||
* @param null|ResponseInterface $response Response received (if any)
|
||||
* @param null|float $transferTime total handler transfer time
|
||||
* @param mixed $handlerErrorData handler error data
|
||||
* @param array $handlerStats handler specific stats
|
||||
*/
|
||||
public function __construct(RequestInterface $request, ?ResponseInterface $response = null, ?float $transferTime = null, $handlerErrorData = null, array $handlerStats = [])
|
||||
{
|
||||
$this->request = $request;
|
||||
$this->response = $response;
|
||||
$this->transferTime = $transferTime;
|
||||
$this->handlerErrorData = $handlerErrorData;
|
||||
$this->handlerStats = $handlerStats;
|
||||
}
|
||||
|
||||
public function getRequest(): RequestInterface
|
||||
{
|
||||
return $this->request;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the response that was received (if any).
|
||||
*/
|
||||
public function getResponse(): ?ResponseInterface
|
||||
{
|
||||
return $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a response was received.
|
||||
*/
|
||||
public function hasResponse(): bool
|
||||
{
|
||||
return null !== $this->response;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets handler specific error data.
|
||||
*
|
||||
* This might be an exception, a integer representing an error code, or
|
||||
* anything else. Relying on this value assumes that you know what handler
|
||||
* you are using.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getHandlerErrorData()
|
||||
{
|
||||
return $this->handlerErrorData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the effective URI the request was sent to.
|
||||
*/
|
||||
public function getEffectiveUri(): UriInterface
|
||||
{
|
||||
return $this->request->getUri();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the estimated time the request was being transferred by the handler.
|
||||
*
|
||||
* @return null|float time in seconds
|
||||
*/
|
||||
public function getTransferTime(): ?float
|
||||
{
|
||||
return $this->transferTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an array of all of the handler specific transfer data.
|
||||
*/
|
||||
public function getHandlerStats(): array
|
||||
{
|
||||
return $this->handlerStats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a specific handler statistic from the handler by name.
|
||||
*
|
||||
* @param string $stat handler specific transfer stat to retrieve
|
||||
*
|
||||
* @return null|mixed
|
||||
*/
|
||||
public function getHandlerStat(string $stat)
|
||||
{
|
||||
return $this->handlerStats[$stat] ?? null;
|
||||
}
|
||||
}
|
||||
369
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Utils.php
vendored
Normal file
369
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/Utils.php
vendored
Normal file
@@ -0,0 +1,369 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
use _JchOptimizeVendor\GuzzleHttp\Exception\InvalidArgumentException;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Handler\CurlHandler;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Handler\CurlMultiHandler;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Handler\Proxy;
|
||||
use _JchOptimizeVendor\GuzzleHttp\Handler\StreamHandler;
|
||||
use _JchOptimizeVendor\Psr\Http\Message\UriInterface;
|
||||
|
||||
final class Utils
|
||||
{
|
||||
/**
|
||||
* Debug function used to describe the provided value type and class.
|
||||
*
|
||||
* @param mixed $input
|
||||
*
|
||||
* @return string returns a string containing the type of the variable and
|
||||
* if a class is provided, the class name
|
||||
*/
|
||||
public static function describeType($input): string
|
||||
{
|
||||
switch (\gettype($input)) {
|
||||
case 'object':
|
||||
return 'object('.\get_class($input).')';
|
||||
|
||||
case 'array':
|
||||
return 'array('.\count($input).')';
|
||||
|
||||
default:
|
||||
\ob_start();
|
||||
\var_dump($input);
|
||||
// normalize float vs double
|
||||
/** @var string $varDumpContent */
|
||||
$varDumpContent = \ob_get_clean();
|
||||
|
||||
return \str_replace('double(', 'float(', \rtrim($varDumpContent));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses an array of header lines into an associative array of headers.
|
||||
*
|
||||
* @param iterable $lines Header lines array of strings in the following
|
||||
* format: "Name: Value"
|
||||
*/
|
||||
public static function headersFromLines(iterable $lines): array
|
||||
{
|
||||
$headers = [];
|
||||
foreach ($lines as $line) {
|
||||
$parts = \explode(':', $line, 2);
|
||||
$headers[\trim($parts[0])][] = isset($parts[1]) ? \trim($parts[1]) : null;
|
||||
}
|
||||
|
||||
return $headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a debug stream based on the provided variable.
|
||||
*
|
||||
* @param mixed $value Optional value
|
||||
*
|
||||
* @return resource
|
||||
*/
|
||||
public static function debugResource($value = null)
|
||||
{
|
||||
if (\is_resource($value)) {
|
||||
return $value;
|
||||
}
|
||||
if (\defined('STDOUT')) {
|
||||
return \STDOUT;
|
||||
}
|
||||
|
||||
return \_JchOptimizeVendor\GuzzleHttp\Psr7\Utils::tryFopen('php://output', 'w');
|
||||
}
|
||||
|
||||
/**
|
||||
* Chooses and creates a default handler to use based on the environment.
|
||||
*
|
||||
* The returned handler is not wrapped by any default middlewares.
|
||||
*
|
||||
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface returns the best handler for the given system
|
||||
*
|
||||
* @throws \RuntimeException if no viable Handler is available
|
||||
*/
|
||||
public static function chooseHandler(): callable
|
||||
{
|
||||
$handler = null;
|
||||
if (\defined('CURLOPT_CUSTOMREQUEST')) {
|
||||
if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
|
||||
$handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
|
||||
} elseif (\function_exists('curl_exec')) {
|
||||
$handler = new CurlHandler();
|
||||
} elseif (\function_exists('curl_multi_exec')) {
|
||||
$handler = new CurlMultiHandler();
|
||||
}
|
||||
}
|
||||
if (\ini_get('allow_url_fopen')) {
|
||||
$handler = $handler ? Proxy::wrapStreaming($handler, new StreamHandler()) : new StreamHandler();
|
||||
} elseif (!$handler) {
|
||||
throw new \RuntimeException('GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.');
|
||||
}
|
||||
|
||||
return $handler;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default User-Agent string to use with Guzzle.
|
||||
*/
|
||||
public static function defaultUserAgent(): string
|
||||
{
|
||||
return \sprintf('GuzzleHttp/%d', ClientInterface::MAJOR_VERSION);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the default cacert bundle for the current system.
|
||||
*
|
||||
* First, the openssl.cafile and curl.cainfo php.ini settings are checked.
|
||||
* If those settings are not configured, then the common locations for
|
||||
* bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X
|
||||
* and Windows are checked. If any of these file locations are found on
|
||||
* disk, they will be utilized.
|
||||
*
|
||||
* Note: the result of this function is cached for subsequent calls.
|
||||
*
|
||||
* @throws \RuntimeException if no bundle can be found
|
||||
*
|
||||
* @deprecated Utils::defaultCaBundle will be removed in guzzlehttp/guzzle:8.0. This method is not needed in PHP 5.6+.
|
||||
*/
|
||||
public static function defaultCaBundle(): string
|
||||
{
|
||||
static $cached = null;
|
||||
static $cafiles = [
|
||||
// Red Hat, CentOS, Fedora (provided by the ca-certificates package)
|
||||
'/etc/pki/tls/certs/ca-bundle.crt',
|
||||
// Ubuntu, Debian (provided by the ca-certificates package)
|
||||
'/etc/ssl/certs/ca-certificates.crt',
|
||||
// FreeBSD (provided by the ca_root_nss package)
|
||||
'/usr/local/share/certs/ca-root-nss.crt',
|
||||
// SLES 12 (provided by the ca-certificates package)
|
||||
'/var/lib/ca-certificates/ca-bundle.pem',
|
||||
// OS X provided by homebrew (using the default path)
|
||||
'/usr/local/etc/openssl/cert.pem',
|
||||
// Google app engine
|
||||
'/etc/ca-certificates.crt',
|
||||
// Windows?
|
||||
'C:\\windows\\system32\\curl-ca-bundle.crt',
|
||||
'C:\\windows\\curl-ca-bundle.crt',
|
||||
];
|
||||
if ($cached) {
|
||||
return $cached;
|
||||
}
|
||||
if ($ca = \ini_get('openssl.cafile')) {
|
||||
return $cached = $ca;
|
||||
}
|
||||
if ($ca = \ini_get('curl.cainfo')) {
|
||||
return $cached = $ca;
|
||||
}
|
||||
foreach ($cafiles as $filename) {
|
||||
if (\file_exists($filename)) {
|
||||
return $cached = $filename;
|
||||
}
|
||||
}
|
||||
|
||||
throw new \RuntimeException(
|
||||
<<<'EOT'
|
||||
No system CA bundle could be found in any of the the common system locations.
|
||||
PHP versions earlier than 5.6 are not properly configured to use the system's
|
||||
CA bundle by default. In order to verify peer certificates, you will need to
|
||||
supply the path on disk to a certificate bundle to the 'verify' request
|
||||
option: http://docs.guzzlephp.org/en/latest/clients.html#verify. If you do not
|
||||
need a specific certificate bundle, then Mozilla provides a commonly used CA
|
||||
bundle which can be downloaded here (provided by the maintainer of cURL):
|
||||
https://curl.haxx.se/ca/cacert.pem. Once
|
||||
you have a CA bundle available on disk, you can set the 'openssl.cafile' PHP
|
||||
ini setting to point to the path to the file, allowing you to omit the 'verify'
|
||||
request option. See https://curl.haxx.se/docs/sslcerts.html for more
|
||||
information.
|
||||
EOT
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an associative array of lowercase header names to the actual
|
||||
* header casing.
|
||||
*/
|
||||
public static function normalizeHeaderKeys(array $headers): array
|
||||
{
|
||||
$result = [];
|
||||
foreach (\array_keys($headers) as $key) {
|
||||
$result[\strtolower($key)] = $key;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the provided host matches any of the no proxy areas.
|
||||
*
|
||||
* This method will strip a port from the host if it is present. Each pattern
|
||||
* can be matched with an exact match (e.g., "foo.com" == "foo.com") or a
|
||||
* partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" ==
|
||||
* "baz.foo.com", but ".foo.com" != "foo.com").
|
||||
*
|
||||
* Areas are matched in the following cases:
|
||||
* 1. "*" (without quotes) always matches any hosts.
|
||||
* 2. An exact match.
|
||||
* 3. The area starts with "." and the area is the last part of the host. e.g.
|
||||
* '.mit.edu' will match any host that ends with '.mit.edu'.
|
||||
*
|
||||
* @param string $host host to check against the patterns
|
||||
* @param string[] $noProxyArray an array of host patterns
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public static function isHostInNoProxy(string $host, array $noProxyArray): bool
|
||||
{
|
||||
if (0 === \strlen($host)) {
|
||||
throw new InvalidArgumentException('Empty host provided');
|
||||
}
|
||||
// Strip port if present.
|
||||
[$host] = \explode(':', $host, 2);
|
||||
foreach ($noProxyArray as $area) {
|
||||
// Always match on wildcards.
|
||||
if ('*' === $area) {
|
||||
return \true;
|
||||
}
|
||||
if (empty($area)) {
|
||||
// Don't match on empty values.
|
||||
continue;
|
||||
}
|
||||
if ($area === $host) {
|
||||
// Exact matches.
|
||||
return \true;
|
||||
}
|
||||
// Special match if the area when prefixed with ".". Remove any
|
||||
// existing leading "." and add a new leading ".".
|
||||
$area = '.'.\ltrim($area, '.');
|
||||
if (\substr($host, -\strlen($area)) === $area) {
|
||||
return \true;
|
||||
}
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for json_decode that throws when an error occurs.
|
||||
*
|
||||
* @param string $json JSON data to parse
|
||||
* @param bool $assoc when true, returned objects will be converted
|
||||
* into associative arrays
|
||||
* @param int $depth user specified recursion depth
|
||||
* @param int $options bitmask of JSON decode options
|
||||
*
|
||||
* @return null|array|bool|float|int|object|string
|
||||
*
|
||||
* @throws InvalidArgumentException if the JSON cannot be decoded
|
||||
*
|
||||
* @see https://www.php.net/manual/en/function.json-decode.php
|
||||
*/
|
||||
public static function jsonDecode(string $json, bool $assoc = \false, int $depth = 512, int $options = 0)
|
||||
{
|
||||
$data = \json_decode($json, $assoc, $depth, $options);
|
||||
if (\JSON_ERROR_NONE !== \json_last_error()) {
|
||||
throw new InvalidArgumentException('json_decode error: '.\json_last_error_msg());
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for JSON encoding that throws when an error occurs.
|
||||
*
|
||||
* @param mixed $value The value being encoded
|
||||
* @param int $options JSON encode option bitmask
|
||||
* @param int $depth Set the maximum depth. Must be greater than zero.
|
||||
*
|
||||
* @throws InvalidArgumentException if the JSON cannot be encoded
|
||||
*
|
||||
* @see https://www.php.net/manual/en/function.json-encode.php
|
||||
*/
|
||||
public static function jsonEncode($value, int $options = 0, int $depth = 512): string
|
||||
{
|
||||
$json = \json_encode($value, $options, $depth);
|
||||
if (\JSON_ERROR_NONE !== \json_last_error()) {
|
||||
throw new InvalidArgumentException('json_encode error: '.\json_last_error_msg());
|
||||
}
|
||||
// @var string
|
||||
return $json;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for the hrtime() or microtime() functions
|
||||
* (depending on the PHP version, one of the two is used).
|
||||
*
|
||||
* @return float UNIX timestamp
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function currentTime(): float
|
||||
{
|
||||
return (float) \function_exists('hrtime') ? \hrtime(\true) / 1000000000.0 : \microtime(\true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws InvalidArgumentException
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
public static function idnUriConvert(UriInterface $uri, int $options = 0): UriInterface
|
||||
{
|
||||
if ($uri->getHost()) {
|
||||
$asciiHost = self::idnToAsci($uri->getHost(), $options, $info);
|
||||
if (\false === $asciiHost) {
|
||||
$errorBitSet = $info['errors'] ?? 0;
|
||||
$errorConstants = \array_filter(\array_keys(\get_defined_constants()), static function (string $name): bool {
|
||||
return 'IDNA_ERROR_' === \substr($name, 0, 11);
|
||||
});
|
||||
$errors = [];
|
||||
foreach ($errorConstants as $errorConstant) {
|
||||
if ($errorBitSet & \constant($errorConstant)) {
|
||||
$errors[] = $errorConstant;
|
||||
}
|
||||
}
|
||||
$errorMessage = 'IDN conversion failed';
|
||||
if ($errors) {
|
||||
$errorMessage .= ' (errors: '.\implode(', ', $errors).')';
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException($errorMessage);
|
||||
}
|
||||
if ($uri->getHost() !== $asciiHost) {
|
||||
// Replace URI only if the ASCII version is different
|
||||
$uri = $uri->withHost($asciiHost);
|
||||
}
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public static function getenv(string $name): ?string
|
||||
{
|
||||
if (isset($_SERVER[$name])) {
|
||||
return (string) $_SERVER[$name];
|
||||
}
|
||||
if (\PHP_SAPI === 'cli' && ($value = \getenv($name)) !== \false && null !== $value) {
|
||||
return (string) $value;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return false|string
|
||||
*/
|
||||
private static function idnToAsci(string $domain, int $options, ?array &$info = [])
|
||||
{
|
||||
if (\function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) {
|
||||
return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info);
|
||||
}
|
||||
|
||||
throw new \Error('ext-idn or symfony/polyfill-intl-idn not loaded or too old');
|
||||
}
|
||||
}
|
||||
167
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/functions.php
vendored
Normal file
167
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/guzzle/src/functions.php
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp;
|
||||
|
||||
/**
|
||||
* Debug function used to describe the provided value type and class.
|
||||
*
|
||||
* @param mixed $input Any type of variable to describe the type of. This
|
||||
* parameter misses a typehint because of that.
|
||||
*
|
||||
* @return string returns a string containing the type of the variable and
|
||||
* if a class is provided, the class name
|
||||
*
|
||||
* @deprecated describe_type will be removed in guzzlehttp/guzzle:8.0. Use Utils::describeType instead.
|
||||
*/
|
||||
function describe_type($input): string
|
||||
{
|
||||
return Utils::describeType($input);
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses an array of header lines into an associative array of headers.
|
||||
*
|
||||
* @param iterable $lines Header lines array of strings in the following
|
||||
* format: "Name: Value"
|
||||
*
|
||||
* @deprecated headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead.
|
||||
*/
|
||||
function headers_from_lines(iterable $lines): array
|
||||
{
|
||||
return Utils::headersFromLines($lines);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a debug stream based on the provided variable.
|
||||
*
|
||||
* @param mixed $value Optional value
|
||||
*
|
||||
* @return resource
|
||||
*
|
||||
* @deprecated debug_resource will be removed in guzzlehttp/guzzle:8.0. Use Utils::debugResource instead.
|
||||
*/
|
||||
function debug_resource($value = null)
|
||||
{
|
||||
return Utils::debugResource($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Chooses and creates a default handler to use based on the environment.
|
||||
*
|
||||
* The returned handler is not wrapped by any default middlewares.
|
||||
*
|
||||
* @return callable(\Psr\Http\Message\RequestInterface, array): \GuzzleHttp\Promise\PromiseInterface returns the best handler for the given system
|
||||
*
|
||||
* @throws \RuntimeException if no viable Handler is available
|
||||
*
|
||||
* @deprecated choose_handler will be removed in guzzlehttp/guzzle:8.0. Use Utils::chooseHandler instead.
|
||||
*/
|
||||
function choose_handler(): callable
|
||||
{
|
||||
return Utils::chooseHandler();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default User-Agent string to use with Guzzle.
|
||||
*
|
||||
* @deprecated default_user_agent will be removed in guzzlehttp/guzzle:8.0. Use Utils::defaultUserAgent instead.
|
||||
*/
|
||||
function default_user_agent(): string
|
||||
{
|
||||
return Utils::defaultUserAgent();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the default cacert bundle for the current system.
|
||||
*
|
||||
* First, the openssl.cafile and curl.cainfo php.ini settings are checked.
|
||||
* If those settings are not configured, then the common locations for
|
||||
* bundles found on Red Hat, CentOS, Fedora, Ubuntu, Debian, FreeBSD, OS X
|
||||
* and Windows are checked. If any of these file locations are found on
|
||||
* disk, they will be utilized.
|
||||
*
|
||||
* Note: the result of this function is cached for subsequent calls.
|
||||
*
|
||||
* @throws \RuntimeException if no bundle can be found
|
||||
*
|
||||
* @deprecated default_ca_bundle will be removed in guzzlehttp/guzzle:8.0. This function is not needed in PHP 5.6+.
|
||||
*/
|
||||
function default_ca_bundle(): string
|
||||
{
|
||||
return Utils::defaultCaBundle();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an associative array of lowercase header names to the actual
|
||||
* header casing.
|
||||
*
|
||||
* @deprecated normalize_header_keys will be removed in guzzlehttp/guzzle:8.0. Use Utils::normalizeHeaderKeys instead.
|
||||
*/
|
||||
function normalize_header_keys(array $headers): array
|
||||
{
|
||||
return Utils::normalizeHeaderKeys($headers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the provided host matches any of the no proxy areas.
|
||||
*
|
||||
* This method will strip a port from the host if it is present. Each pattern
|
||||
* can be matched with an exact match (e.g., "foo.com" == "foo.com") or a
|
||||
* partial match: (e.g., "foo.com" == "baz.foo.com" and ".foo.com" ==
|
||||
* "baz.foo.com", but ".foo.com" != "foo.com").
|
||||
*
|
||||
* Areas are matched in the following cases:
|
||||
* 1. "*" (without quotes) always matches any hosts.
|
||||
* 2. An exact match.
|
||||
* 3. The area starts with "." and the area is the last part of the host. e.g.
|
||||
* '.mit.edu' will match any host that ends with '.mit.edu'.
|
||||
*
|
||||
* @param string $host host to check against the patterns
|
||||
* @param string[] $noProxyArray an array of host patterns
|
||||
*
|
||||
* @throws Exception\InvalidArgumentException
|
||||
*
|
||||
* @deprecated is_host_in_noproxy will be removed in guzzlehttp/guzzle:8.0. Use Utils::isHostInNoProxy instead.
|
||||
*/
|
||||
function is_host_in_noproxy(string $host, array $noProxyArray): bool
|
||||
{
|
||||
return Utils::isHostInNoProxy($host, $noProxyArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for json_decode that throws when an error occurs.
|
||||
*
|
||||
* @param string $json JSON data to parse
|
||||
* @param bool $assoc when true, returned objects will be converted
|
||||
* into associative arrays
|
||||
* @param int $depth user specified recursion depth
|
||||
* @param int $options bitmask of JSON decode options
|
||||
*
|
||||
* @return null|array|bool|float|int|object|string
|
||||
*
|
||||
* @throws Exception\InvalidArgumentException if the JSON cannot be decoded
|
||||
*
|
||||
* @see https://www.php.net/manual/en/function.json-decode.php
|
||||
* @deprecated json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead.
|
||||
*/
|
||||
function json_decode(string $json, bool $assoc = \false, int $depth = 512, int $options = 0)
|
||||
{
|
||||
return Utils::jsonDecode($json, $assoc, $depth, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper for JSON encoding that throws when an error occurs.
|
||||
*
|
||||
* @param mixed $value The value being encoded
|
||||
* @param int $options JSON encode option bitmask
|
||||
* @param int $depth Set the maximum depth. Must be greater than zero.
|
||||
*
|
||||
* @throws Exception\InvalidArgumentException if the JSON cannot be encoded
|
||||
*
|
||||
* @see https://www.php.net/manual/en/function.json-encode.php
|
||||
* @deprecated json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead.
|
||||
*/
|
||||
function json_encode($value, int $options = 0, int $depth = 512): string
|
||||
{
|
||||
return Utils::jsonEncode($value, $options, $depth);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor;
|
||||
|
||||
// Don't redefine the functions if included multiple times.
|
||||
if (!\function_exists('_JchOptimizeVendor\\GuzzleHttp\\describe_type')) {
|
||||
require __DIR__.'/functions.php';
|
||||
}
|
||||
24
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/LICENSE
vendored
Normal file
24
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/LICENSE
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Michael Dowling <mtdowling@gmail.com>
|
||||
Copyright (c) 2015 Graham Campbell <hello@gjcampbell.co.uk>
|
||||
Copyright (c) 2017 Tobias Schultze <webmaster@tubo-world.de>
|
||||
Copyright (c) 2020 Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Exception thrown when too many errors occur in the some() or any() methods.
|
||||
*/
|
||||
class AggregateException extends RejectionException
|
||||
{
|
||||
public function __construct($msg, array $reasons)
|
||||
{
|
||||
parent::__construct($reasons, \sprintf('%s; %d rejected promises', $msg, \count($reasons)));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Exception that is set as the reason for a promise that has been cancelled.
|
||||
*/
|
||||
class CancellationException extends RejectionException
|
||||
{
|
||||
}
|
||||
171
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Coroutine.php
vendored
Normal file
171
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Coroutine.php
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
use Generator;
|
||||
|
||||
/**
|
||||
* Creates a promise that is resolved using a generator that yields values or
|
||||
* promises (somewhat similar to C#'s async keyword).
|
||||
*
|
||||
* When called, the Coroutine::of method will start an instance of the generator
|
||||
* and returns a promise that is fulfilled with its final yielded value.
|
||||
*
|
||||
* Control is returned back to the generator when the yielded promise settles.
|
||||
* This can lead to less verbose code when doing lots of sequential async calls
|
||||
* with minimal processing in between.
|
||||
*
|
||||
* use GuzzleHttp\Promise;
|
||||
*
|
||||
* function createPromise($value) {
|
||||
* return new Promise\FulfilledPromise($value);
|
||||
* }
|
||||
*
|
||||
* $promise = Promise\Coroutine::of(function () {
|
||||
* $value = (yield createPromise('a'));
|
||||
* try {
|
||||
* $value = (yield createPromise($value . 'b'));
|
||||
* } catch (\Exception $e) {
|
||||
* // The promise was rejected.
|
||||
* }
|
||||
* yield $value . 'c';
|
||||
* });
|
||||
*
|
||||
* // Outputs "abc"
|
||||
* $promise->then(function ($v) { echo $v; });
|
||||
*
|
||||
* @param callable $generatorFn generator function to wrap into a promise
|
||||
*
|
||||
* @return Promise
|
||||
*
|
||||
* @see https://github.com/petkaantonov/bluebird/blob/master/API.md#generators inspiration
|
||||
*/
|
||||
final class Coroutine implements PromiseInterface
|
||||
{
|
||||
/**
|
||||
* @var null|PromiseInterface
|
||||
*/
|
||||
private $currentPromise;
|
||||
|
||||
/**
|
||||
* @var \Generator
|
||||
*/
|
||||
private $generator;
|
||||
|
||||
/**
|
||||
* @var Promise
|
||||
*/
|
||||
private $result;
|
||||
|
||||
public function __construct(callable $generatorFn)
|
||||
{
|
||||
$this->generator = $generatorFn();
|
||||
$this->result = new Promise(function () {
|
||||
while (isset($this->currentPromise)) {
|
||||
$this->currentPromise->wait();
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
$this->nextCoroutine($this->generator->current());
|
||||
} catch (\Exception $exception) {
|
||||
$this->result->reject($exception);
|
||||
} catch (\Throwable $throwable) {
|
||||
$this->result->reject($throwable);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new coroutine.
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public static function of(callable $generatorFn)
|
||||
{
|
||||
return new self($generatorFn);
|
||||
}
|
||||
|
||||
public function then(callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
return $this->result->then($onFulfilled, $onRejected);
|
||||
}
|
||||
|
||||
public function otherwise(callable $onRejected)
|
||||
{
|
||||
return $this->result->otherwise($onRejected);
|
||||
}
|
||||
|
||||
public function wait($unwrap = \true)
|
||||
{
|
||||
return $this->result->wait($unwrap);
|
||||
}
|
||||
|
||||
public function getState()
|
||||
{
|
||||
return $this->result->getState();
|
||||
}
|
||||
|
||||
public function resolve($value)
|
||||
{
|
||||
$this->result->resolve($value);
|
||||
}
|
||||
|
||||
public function reject($reason)
|
||||
{
|
||||
$this->result->reject($reason);
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
$this->currentPromise->cancel();
|
||||
$this->result->cancel();
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @param mixed $value
|
||||
*/
|
||||
public function _handleSuccess($value)
|
||||
{
|
||||
unset($this->currentPromise);
|
||||
|
||||
try {
|
||||
$next = $this->generator->send($value);
|
||||
if ($this->generator->valid()) {
|
||||
$this->nextCoroutine($next);
|
||||
} else {
|
||||
$this->result->resolve($value);
|
||||
}
|
||||
} catch (\Exception $exception) {
|
||||
$this->result->reject($exception);
|
||||
} catch (\Throwable $throwable) {
|
||||
$this->result->reject($throwable);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @param mixed $reason
|
||||
*/
|
||||
public function _handleFailure($reason)
|
||||
{
|
||||
unset($this->currentPromise);
|
||||
|
||||
try {
|
||||
$nextYield = $this->generator->throw(Create::exceptionFor($reason));
|
||||
// The throw was caught, so keep iterating on the coroutine
|
||||
$this->nextCoroutine($nextYield);
|
||||
} catch (\Exception $exception) {
|
||||
$this->result->reject($exception);
|
||||
} catch (\Throwable $throwable) {
|
||||
$this->result->reject($throwable);
|
||||
}
|
||||
}
|
||||
|
||||
private function nextCoroutine($yielded)
|
||||
{
|
||||
$this->currentPromise = Create::promiseFor($yielded)->then([$this, '_handleSuccess'], [$this, '_handleFailure']);
|
||||
}
|
||||
}
|
||||
83
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Create.php
vendored
Normal file
83
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Create.php
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
final class Create
|
||||
{
|
||||
/**
|
||||
* Creates a promise for a value if the value is not a promise.
|
||||
*
|
||||
* @param mixed $value promise or value
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function promiseFor($value)
|
||||
{
|
||||
if ($value instanceof PromiseInterface) {
|
||||
return $value;
|
||||
}
|
||||
// Return a Guzzle promise that shadows the given promise.
|
||||
if (\is_object($value) && \method_exists($value, 'then')) {
|
||||
$wfn = \method_exists($value, 'wait') ? [$value, 'wait'] : null;
|
||||
$cfn = \method_exists($value, 'cancel') ? [$value, 'cancel'] : null;
|
||||
$promise = new Promise($wfn, $cfn);
|
||||
$value->then([$promise, 'resolve'], [$promise, 'reject']);
|
||||
|
||||
return $promise;
|
||||
}
|
||||
|
||||
return new FulfilledPromise($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a rejected promise for a reason if the reason is not a promise.
|
||||
* If the provided reason is a promise, then it is returned as-is.
|
||||
*
|
||||
* @param mixed $reason promise or reason
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function rejectionFor($reason)
|
||||
{
|
||||
if ($reason instanceof PromiseInterface) {
|
||||
return $reason;
|
||||
}
|
||||
|
||||
return new RejectedPromise($reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception for a rejected promise value.
|
||||
*
|
||||
* @param mixed $reason
|
||||
*
|
||||
* @return \Exception|\Throwable
|
||||
*/
|
||||
public static function exceptionFor($reason)
|
||||
{
|
||||
if ($reason instanceof \Exception || $reason instanceof \Throwable) {
|
||||
return $reason;
|
||||
}
|
||||
|
||||
return new RejectionException($reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator for the given value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return \Iterator
|
||||
*/
|
||||
public static function iterFor($value)
|
||||
{
|
||||
if ($value instanceof \Iterator) {
|
||||
return $value;
|
||||
}
|
||||
if (\is_array($value)) {
|
||||
return new \ArrayIterator($value);
|
||||
}
|
||||
|
||||
return new \ArrayIterator([$value]);
|
||||
}
|
||||
}
|
||||
68
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Each.php
vendored
Normal file
68
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Each.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
final class Each
|
||||
{
|
||||
/**
|
||||
* Given an iterator that yields promises or values, returns a promise that
|
||||
* is fulfilled with a null value when the iterator has been consumed or
|
||||
* the aggregate promise has been fulfilled or rejected.
|
||||
*
|
||||
* $onFulfilled is a function that accepts the fulfilled value, iterator
|
||||
* index, and the aggregate promise. The callback can invoke any necessary
|
||||
* side effects and choose to resolve or reject the aggregate if needed.
|
||||
*
|
||||
* $onRejected is a function that accepts the rejection reason, iterator
|
||||
* index, and the aggregate promise. The callback can invoke any necessary
|
||||
* side effects and choose to resolve or reject the aggregate if needed.
|
||||
*
|
||||
* @param mixed $iterable iterator or array to iterate over
|
||||
* @param callable $onFulfilled
|
||||
* @param callable $onRejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function of($iterable, callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected]))->promise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Like of, but only allows a certain number of outstanding promises at any
|
||||
* given time.
|
||||
*
|
||||
* $concurrency may be an integer or a function that accepts the number of
|
||||
* pending promises and returns a numeric concurrency limit value to allow
|
||||
* for dynamic a concurrency size.
|
||||
*
|
||||
* @param mixed $iterable
|
||||
* @param callable|int $concurrency
|
||||
* @param callable $onFulfilled
|
||||
* @param callable $onRejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function ofLimit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
return (new EachPromise($iterable, ['fulfilled' => $onFulfilled, 'rejected' => $onRejected, 'concurrency' => $concurrency]))->promise();
|
||||
}
|
||||
|
||||
/**
|
||||
* Like limit, but ensures that no promise in the given $iterable argument
|
||||
* is rejected. If any promise is rejected, then the aggregate promise is
|
||||
* rejected with the encountered rejection.
|
||||
*
|
||||
* @param mixed $iterable
|
||||
* @param callable|int $concurrency
|
||||
* @param callable $onFulfilled
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function ofLimitAll($iterable, $concurrency, callable $onFulfilled = null)
|
||||
{
|
||||
return self::ofLimit($iterable, $concurrency, $onFulfilled, function ($reason, $idx, PromiseInterface $aggregate) {
|
||||
$aggregate->reject($reason);
|
||||
});
|
||||
}
|
||||
}
|
||||
221
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/EachPromise.php
vendored
Normal file
221
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/EachPromise.php
vendored
Normal file
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Represents a promise that iterates over many promises and invokes
|
||||
* side-effect functions in the process.
|
||||
*/
|
||||
class EachPromise implements PromisorInterface
|
||||
{
|
||||
private $pending = [];
|
||||
private $nextPendingIndex = 0;
|
||||
|
||||
/** @var null|\Iterator */
|
||||
private $iterable;
|
||||
|
||||
/** @var null|callable|int */
|
||||
private $concurrency;
|
||||
|
||||
/** @var null|callable */
|
||||
private $onFulfilled;
|
||||
|
||||
/** @var null|callable */
|
||||
private $onRejected;
|
||||
|
||||
/** @var null|Promise */
|
||||
private $aggregate;
|
||||
|
||||
/** @var null|bool */
|
||||
private $mutex;
|
||||
|
||||
/**
|
||||
* Configuration hash can include the following key value pairs:.
|
||||
*
|
||||
* - fulfilled: (callable) Invoked when a promise fulfills. The function
|
||||
* is invoked with three arguments: the fulfillment value, the index
|
||||
* position from the iterable list of the promise, and the aggregate
|
||||
* promise that manages all of the promises. The aggregate promise may
|
||||
* be resolved from within the callback to short-circuit the promise.
|
||||
* - rejected: (callable) Invoked when a promise is rejected. The
|
||||
* function is invoked with three arguments: the rejection reason, the
|
||||
* index position from the iterable list of the promise, and the
|
||||
* aggregate promise that manages all of the promises. The aggregate
|
||||
* promise may be resolved from within the callback to short-circuit
|
||||
* the promise.
|
||||
* - concurrency: (integer) Pass this configuration option to limit the
|
||||
* allowed number of outstanding concurrently executing promises,
|
||||
* creating a capped pool of promises. There is no limit by default.
|
||||
*
|
||||
* @param mixed $iterable promises or values to iterate
|
||||
* @param array $config Configuration options
|
||||
*/
|
||||
public function __construct($iterable, array $config = [])
|
||||
{
|
||||
$this->iterable = Create::iterFor($iterable);
|
||||
if (isset($config['concurrency'])) {
|
||||
$this->concurrency = $config['concurrency'];
|
||||
}
|
||||
if (isset($config['fulfilled'])) {
|
||||
$this->onFulfilled = $config['fulfilled'];
|
||||
}
|
||||
if (isset($config['rejected'])) {
|
||||
$this->onRejected = $config['rejected'];
|
||||
}
|
||||
}
|
||||
|
||||
/** @psalm-suppress InvalidNullableReturnType */
|
||||
public function promise()
|
||||
{
|
||||
if ($this->aggregate) {
|
||||
return $this->aggregate;
|
||||
}
|
||||
|
||||
try {
|
||||
$this->createPromise();
|
||||
// @psalm-assert Promise $this->aggregate
|
||||
$this->iterable->rewind();
|
||||
$this->refillPending();
|
||||
} catch (\Throwable $e) {
|
||||
$this->aggregate->reject($e);
|
||||
} catch (\Exception $e) {
|
||||
$this->aggregate->reject($e);
|
||||
}
|
||||
/*
|
||||
* @psalm-suppress NullableReturnStatement
|
||||
* @phpstan-ignore-next-line
|
||||
*/
|
||||
return $this->aggregate;
|
||||
}
|
||||
|
||||
private function createPromise()
|
||||
{
|
||||
$this->mutex = \false;
|
||||
$this->aggregate = new Promise(function () {
|
||||
if ($this->checkIfFinished()) {
|
||||
return;
|
||||
}
|
||||
\reset($this->pending);
|
||||
// Consume a potentially fluctuating list of promises while
|
||||
// ensuring that indexes are maintained (precluding array_shift).
|
||||
while ($promise = \current($this->pending)) {
|
||||
\next($this->pending);
|
||||
$promise->wait();
|
||||
if (Is::settled($this->aggregate)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
});
|
||||
// Clear the references when the promise is resolved.
|
||||
$clearFn = function () {
|
||||
$this->iterable = $this->concurrency = $this->pending = null;
|
||||
$this->onFulfilled = $this->onRejected = null;
|
||||
$this->nextPendingIndex = 0;
|
||||
};
|
||||
$this->aggregate->then($clearFn, $clearFn);
|
||||
}
|
||||
|
||||
private function refillPending()
|
||||
{
|
||||
if (!$this->concurrency) {
|
||||
// Add all pending promises.
|
||||
while ($this->addPending() && $this->advanceIterator());
|
||||
|
||||
return;
|
||||
}
|
||||
// Add only up to N pending promises.
|
||||
$concurrency = \is_callable($this->concurrency) ? \call_user_func($this->concurrency, \count($this->pending)) : $this->concurrency;
|
||||
$concurrency = \max($concurrency - \count($this->pending), 0);
|
||||
// Concurrency may be set to 0 to disallow new promises.
|
||||
if (!$concurrency) {
|
||||
return;
|
||||
}
|
||||
// Add the first pending promise.
|
||||
$this->addPending();
|
||||
// Note this is special handling for concurrency=1 so that we do
|
||||
// not advance the iterator after adding the first promise. This
|
||||
// helps work around issues with generators that might not have the
|
||||
// next value to yield until promise callbacks are called.
|
||||
while (--$concurrency && $this->advanceIterator() && $this->addPending());
|
||||
}
|
||||
|
||||
private function addPending()
|
||||
{
|
||||
if (!$this->iterable || !$this->iterable->valid()) {
|
||||
return \false;
|
||||
}
|
||||
$promise = Create::promiseFor($this->iterable->current());
|
||||
$key = $this->iterable->key();
|
||||
// Iterable keys may not be unique, so we use a counter to
|
||||
// guarantee uniqueness
|
||||
$idx = $this->nextPendingIndex++;
|
||||
$this->pending[$idx] = $promise->then(function ($value) use ($idx, $key) {
|
||||
if ($this->onFulfilled) {
|
||||
\call_user_func($this->onFulfilled, $value, $key, $this->aggregate);
|
||||
}
|
||||
$this->step($idx);
|
||||
}, function ($reason) use ($idx, $key) {
|
||||
if ($this->onRejected) {
|
||||
\call_user_func($this->onRejected, $reason, $key, $this->aggregate);
|
||||
}
|
||||
$this->step($idx);
|
||||
});
|
||||
|
||||
return \true;
|
||||
}
|
||||
|
||||
private function advanceIterator()
|
||||
{
|
||||
// Place a lock on the iterator so that we ensure to not recurse,
|
||||
// preventing fatal generator errors.
|
||||
if ($this->mutex) {
|
||||
return \false;
|
||||
}
|
||||
$this->mutex = \true;
|
||||
|
||||
try {
|
||||
$this->iterable->next();
|
||||
$this->mutex = \false;
|
||||
|
||||
return \true;
|
||||
} catch (\Throwable $e) {
|
||||
$this->aggregate->reject($e);
|
||||
$this->mutex = \false;
|
||||
|
||||
return \false;
|
||||
} catch (\Exception $e) {
|
||||
$this->aggregate->reject($e);
|
||||
$this->mutex = \false;
|
||||
|
||||
return \false;
|
||||
}
|
||||
}
|
||||
|
||||
private function step($idx)
|
||||
{
|
||||
// If the promise was already resolved, then ignore this step.
|
||||
if (Is::settled($this->aggregate)) {
|
||||
return;
|
||||
}
|
||||
unset($this->pending[$idx]);
|
||||
// Only refill pending promises if we are not locked, preventing the
|
||||
// EachPromise to recursively invoke the provided iterator, which
|
||||
// cause a fatal error: "Cannot resume an already running generator"
|
||||
if ($this->advanceIterator() && !$this->checkIfFinished()) {
|
||||
// Add more pending promises if possible.
|
||||
$this->refillPending();
|
||||
}
|
||||
}
|
||||
|
||||
private function checkIfFinished()
|
||||
{
|
||||
if (!$this->pending && !$this->iterable->valid()) {
|
||||
// Resolve the promise if there's nothing left to do.
|
||||
$this->aggregate->resolve(null);
|
||||
|
||||
return \true;
|
||||
}
|
||||
|
||||
return \false;
|
||||
}
|
||||
}
|
||||
78
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/FulfilledPromise.php
vendored
Normal file
78
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/FulfilledPromise.php
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* A promise that has been fulfilled.
|
||||
*
|
||||
* Thenning off of this promise will invoke the onFulfilled callback
|
||||
* immediately and ignore other callbacks.
|
||||
*/
|
||||
class FulfilledPromise implements PromiseInterface
|
||||
{
|
||||
private $value;
|
||||
|
||||
public function __construct($value)
|
||||
{
|
||||
if (\is_object($value) && \method_exists($value, 'then')) {
|
||||
throw new \InvalidArgumentException('You cannot create a FulfilledPromise with a promise.');
|
||||
}
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
public function then(callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
// Return itself if there is no onFulfilled function.
|
||||
if (!$onFulfilled) {
|
||||
return $this;
|
||||
}
|
||||
$queue = Utils::queue();
|
||||
$p = new Promise([$queue, 'run']);
|
||||
$value = $this->value;
|
||||
$queue->add(static function () use ($p, $value, $onFulfilled) {
|
||||
if (Is::pending($p)) {
|
||||
try {
|
||||
$p->resolve($onFulfilled($value));
|
||||
} catch (\Throwable $e) {
|
||||
$p->reject($e);
|
||||
} catch (\Exception $e) {
|
||||
$p->reject($e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return $p;
|
||||
}
|
||||
|
||||
public function otherwise(callable $onRejected)
|
||||
{
|
||||
return $this->then(null, $onRejected);
|
||||
}
|
||||
|
||||
public function wait($unwrap = \true, $defaultDelivery = null)
|
||||
{
|
||||
return $unwrap ? $this->value : null;
|
||||
}
|
||||
|
||||
public function getState()
|
||||
{
|
||||
return self::FULFILLED;
|
||||
}
|
||||
|
||||
public function resolve($value)
|
||||
{
|
||||
if ($value !== $this->value) {
|
||||
throw new \LogicException('Cannot resolve a fulfilled promise');
|
||||
}
|
||||
}
|
||||
|
||||
public function reject($reason)
|
||||
{
|
||||
throw new \LogicException('Cannot reject a fulfilled promise');
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
// pass
|
||||
}
|
||||
}
|
||||
46
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Is.php
vendored
Normal file
46
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Is.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
final class Is
|
||||
{
|
||||
/**
|
||||
* Returns true if a promise is pending.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function pending(PromiseInterface $promise)
|
||||
{
|
||||
return PromiseInterface::PENDING === $promise->getState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is fulfilled or rejected.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function settled(PromiseInterface $promise)
|
||||
{
|
||||
return PromiseInterface::PENDING !== $promise->getState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is fulfilled.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function fulfilled(PromiseInterface $promise)
|
||||
{
|
||||
return PromiseInterface::FULFILLED === $promise->getState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is rejected.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function rejected(PromiseInterface $promise)
|
||||
{
|
||||
return PromiseInterface::REJECTED === $promise->getState();
|
||||
}
|
||||
}
|
||||
257
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Promise.php
vendored
Normal file
257
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Promise.php
vendored
Normal file
@@ -0,0 +1,257 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Promises/A+ implementation that avoids recursion when possible.
|
||||
*
|
||||
* @see https://promisesaplus.com/
|
||||
*/
|
||||
class Promise implements PromiseInterface
|
||||
{
|
||||
private $state = self::PENDING;
|
||||
private $result;
|
||||
private $cancelFn;
|
||||
private $waitFn;
|
||||
private $waitList;
|
||||
private $handlers = [];
|
||||
|
||||
/**
|
||||
* @param callable $waitFn fn that when invoked resolves the promise
|
||||
* @param callable $cancelFn fn that when invoked cancels the promise
|
||||
*/
|
||||
public function __construct(callable $waitFn = null, callable $cancelFn = null)
|
||||
{
|
||||
$this->waitFn = $waitFn;
|
||||
$this->cancelFn = $cancelFn;
|
||||
}
|
||||
|
||||
public function then(callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
if (self::PENDING === $this->state) {
|
||||
$p = new Promise(null, [$this, 'cancel']);
|
||||
$this->handlers[] = [$p, $onFulfilled, $onRejected];
|
||||
$p->waitList = $this->waitList;
|
||||
$p->waitList[] = $this;
|
||||
|
||||
return $p;
|
||||
}
|
||||
// Return a fulfilled promise and immediately invoke any callbacks.
|
||||
if (self::FULFILLED === $this->state) {
|
||||
$promise = Create::promiseFor($this->result);
|
||||
|
||||
return $onFulfilled ? $promise->then($onFulfilled) : $promise;
|
||||
}
|
||||
// It's either cancelled or rejected, so return a rejected promise
|
||||
// and immediately invoke any callbacks.
|
||||
$rejection = Create::rejectionFor($this->result);
|
||||
|
||||
return $onRejected ? $rejection->then(null, $onRejected) : $rejection;
|
||||
}
|
||||
|
||||
public function otherwise(callable $onRejected)
|
||||
{
|
||||
return $this->then(null, $onRejected);
|
||||
}
|
||||
|
||||
public function wait($unwrap = \true)
|
||||
{
|
||||
$this->waitIfPending();
|
||||
if ($this->result instanceof PromiseInterface) {
|
||||
return $this->result->wait($unwrap);
|
||||
}
|
||||
if ($unwrap) {
|
||||
if (self::FULFILLED === $this->state) {
|
||||
return $this->result;
|
||||
}
|
||||
// It's rejected so "unwrap" and throw an exception.
|
||||
throw Create::exceptionFor($this->result);
|
||||
}
|
||||
}
|
||||
|
||||
public function getState()
|
||||
{
|
||||
return $this->state;
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
if (self::PENDING !== $this->state) {
|
||||
return;
|
||||
}
|
||||
$this->waitFn = $this->waitList = null;
|
||||
if ($this->cancelFn) {
|
||||
$fn = $this->cancelFn;
|
||||
$this->cancelFn = null;
|
||||
|
||||
try {
|
||||
$fn();
|
||||
} catch (\Throwable $e) {
|
||||
$this->reject($e);
|
||||
} catch (\Exception $e) {
|
||||
$this->reject($e);
|
||||
}
|
||||
}
|
||||
// Reject the promise only if it wasn't rejected in a then callback.
|
||||
// @psalm-suppress RedundantCondition
|
||||
if (self::PENDING === $this->state) {
|
||||
$this->reject(new CancellationException('Promise has been cancelled'));
|
||||
}
|
||||
}
|
||||
|
||||
public function resolve($value)
|
||||
{
|
||||
$this->settle(self::FULFILLED, $value);
|
||||
}
|
||||
|
||||
public function reject($reason)
|
||||
{
|
||||
$this->settle(self::REJECTED, $reason);
|
||||
}
|
||||
|
||||
private function settle($state, $value)
|
||||
{
|
||||
if (self::PENDING !== $this->state) {
|
||||
// Ignore calls with the same resolution.
|
||||
if ($state === $this->state && $value === $this->result) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw $this->state === $state ? new \LogicException("The promise is already {$state}.") : new \LogicException("Cannot change a {$this->state} promise to {$state}");
|
||||
}
|
||||
if ($value === $this) {
|
||||
throw new \LogicException('Cannot fulfill or reject a promise with itself');
|
||||
}
|
||||
// Clear out the state of the promise but stash the handlers.
|
||||
$this->state = $state;
|
||||
$this->result = $value;
|
||||
$handlers = $this->handlers;
|
||||
$this->handlers = null;
|
||||
$this->waitList = $this->waitFn = null;
|
||||
$this->cancelFn = null;
|
||||
if (!$handlers) {
|
||||
return;
|
||||
}
|
||||
// If the value was not a settled promise or a thenable, then resolve
|
||||
// it in the task queue using the correct ID.
|
||||
if (!\is_object($value) || !\method_exists($value, 'then')) {
|
||||
$id = self::FULFILLED === $state ? 1 : 2;
|
||||
// It's a success, so resolve the handlers in the queue.
|
||||
Utils::queue()->add(static function () use ($id, $value, $handlers) {
|
||||
foreach ($handlers as $handler) {
|
||||
self::callHandler($id, $value, $handler);
|
||||
}
|
||||
});
|
||||
} elseif ($value instanceof Promise && Is::pending($value)) {
|
||||
// We can just merge our handlers onto the next promise.
|
||||
$value->handlers = \array_merge($value->handlers, $handlers);
|
||||
} else {
|
||||
// Resolve the handlers when the forwarded promise is resolved.
|
||||
$value->then(static function ($value) use ($handlers) {
|
||||
foreach ($handlers as $handler) {
|
||||
self::callHandler(1, $value, $handler);
|
||||
}
|
||||
}, static function ($reason) use ($handlers) {
|
||||
foreach ($handlers as $handler) {
|
||||
self::callHandler(2, $reason, $handler);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Call a stack of handlers using a specific callback index and value.
|
||||
*
|
||||
* @param int $index 1 (resolve) or 2 (reject)
|
||||
* @param mixed $value value to pass to the callback
|
||||
* @param array $handler array of handler data (promise and callbacks)
|
||||
*/
|
||||
private static function callHandler($index, $value, array $handler)
|
||||
{
|
||||
/** @var PromiseInterface $promise */
|
||||
$promise = $handler[0];
|
||||
// The promise may have been cancelled or resolved before placing
|
||||
// this thunk in the queue.
|
||||
if (Is::settled($promise)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
if (isset($handler[$index])) {
|
||||
/*
|
||||
* If $f throws an exception, then $handler will be in the exception
|
||||
* stack trace. Since $handler contains a reference to the callable
|
||||
* itself we get a circular reference. We clear the $handler
|
||||
* here to avoid that memory leak.
|
||||
*/
|
||||
$f = $handler[$index];
|
||||
unset($handler);
|
||||
$promise->resolve($f($value));
|
||||
} elseif (1 === $index) {
|
||||
// Forward resolution values as-is.
|
||||
$promise->resolve($value);
|
||||
} else {
|
||||
// Forward rejections down the chain.
|
||||
$promise->reject($value);
|
||||
}
|
||||
} catch (\Throwable $reason) {
|
||||
$promise->reject($reason);
|
||||
} catch (\Exception $reason) {
|
||||
$promise->reject($reason);
|
||||
}
|
||||
}
|
||||
|
||||
private function waitIfPending()
|
||||
{
|
||||
if (self::PENDING !== $this->state) {
|
||||
return;
|
||||
}
|
||||
if ($this->waitFn) {
|
||||
$this->invokeWaitFn();
|
||||
} elseif ($this->waitList) {
|
||||
$this->invokeWaitList();
|
||||
} else {
|
||||
// If there's no wait function, then reject the promise.
|
||||
$this->reject('Cannot wait on a promise that has no internal wait function. You must provide a wait function when constructing the promise to be able to wait on a promise.');
|
||||
}
|
||||
Utils::queue()->run();
|
||||
// @psalm-suppress RedundantCondition
|
||||
if (self::PENDING === $this->state) {
|
||||
$this->reject('Invoking the wait callback did not resolve the promise');
|
||||
}
|
||||
}
|
||||
|
||||
private function invokeWaitFn()
|
||||
{
|
||||
try {
|
||||
$wfn = $this->waitFn;
|
||||
$this->waitFn = null;
|
||||
$wfn(\true);
|
||||
} catch (\Exception $reason) {
|
||||
if (self::PENDING === $this->state) {
|
||||
// The promise has not been resolved yet, so reject the promise
|
||||
// with the exception.
|
||||
$this->reject($reason);
|
||||
} else {
|
||||
// The promise was already resolved, so there's a problem in
|
||||
// the application.
|
||||
throw $reason;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function invokeWaitList()
|
||||
{
|
||||
$waitList = $this->waitList;
|
||||
$this->waitList = null;
|
||||
foreach ($waitList as $result) {
|
||||
do {
|
||||
$result->waitIfPending();
|
||||
$result = $result->result;
|
||||
} while ($result instanceof Promise);
|
||||
if ($result instanceof PromiseInterface) {
|
||||
$result->wait(\false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
94
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/PromiseInterface.php
vendored
Normal file
94
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/PromiseInterface.php
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* A promise represents the eventual result of an asynchronous operation.
|
||||
*
|
||||
* The primary way of interacting with a promise is through its then method,
|
||||
* which registers callbacks to receive either a promise’s eventual value or
|
||||
* the reason why the promise cannot be fulfilled.
|
||||
*
|
||||
* @see https://promisesaplus.com/
|
||||
*/
|
||||
interface PromiseInterface
|
||||
{
|
||||
public const PENDING = 'pending';
|
||||
public const FULFILLED = 'fulfilled';
|
||||
public const REJECTED = 'rejected';
|
||||
|
||||
/**
|
||||
* Appends fulfillment and rejection handlers to the promise, and returns
|
||||
* a new promise resolving to the return value of the called handler.
|
||||
*
|
||||
* @param callable $onFulfilled invoked when the promise fulfills
|
||||
* @param callable $onRejected invoked when the promise is rejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function then(callable $onFulfilled = null, callable $onRejected = null);
|
||||
|
||||
/**
|
||||
* Appends a rejection handler callback to the promise, and returns a new
|
||||
* promise resolving to the return value of the callback if it is called,
|
||||
* or to its original fulfillment value if the promise is instead
|
||||
* fulfilled.
|
||||
*
|
||||
* @param callable $onRejected invoked when the promise is rejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function otherwise(callable $onRejected);
|
||||
|
||||
/**
|
||||
* Get the state of the promise ("pending", "rejected", or "fulfilled").
|
||||
*
|
||||
* The three states can be checked against the constants defined on
|
||||
* PromiseInterface: PENDING, FULFILLED, and REJECTED.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getState();
|
||||
|
||||
/**
|
||||
* Resolve the promise with the given value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @throws \RuntimeException if the promise is already resolved
|
||||
*/
|
||||
public function resolve($value);
|
||||
|
||||
/**
|
||||
* Reject the promise with the given reason.
|
||||
*
|
||||
* @param mixed $reason
|
||||
*
|
||||
* @throws \RuntimeException if the promise is already resolved
|
||||
*/
|
||||
public function reject($reason);
|
||||
|
||||
/**
|
||||
* Cancels the promise if possible.
|
||||
*
|
||||
* @see https://github.com/promises-aplus/cancellation-spec/issues/7
|
||||
*/
|
||||
public function cancel();
|
||||
|
||||
/**
|
||||
* Waits until the promise completes if possible.
|
||||
*
|
||||
* Pass $unwrap as true to unwrap the result of the promise, either
|
||||
* returning the resolved value or throwing the rejected exception.
|
||||
*
|
||||
* If the promise cannot be waited on, then the promise will be rejected.
|
||||
*
|
||||
* @param bool $unwrap
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @throws \LogicException if the promise has no wait function or if the
|
||||
* promise does not settle after waiting
|
||||
*/
|
||||
public function wait($unwrap = \true);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Interface used with classes that return a promise.
|
||||
*/
|
||||
interface PromisorInterface
|
||||
{
|
||||
/**
|
||||
* Returns a promise.
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public function promise();
|
||||
}
|
||||
85
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/RejectedPromise.php
vendored
Normal file
85
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/RejectedPromise.php
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* A promise that has been rejected.
|
||||
*
|
||||
* Thenning off of this promise will invoke the onRejected callback
|
||||
* immediately and ignore other callbacks.
|
||||
*/
|
||||
class RejectedPromise implements PromiseInterface
|
||||
{
|
||||
private $reason;
|
||||
|
||||
public function __construct($reason)
|
||||
{
|
||||
if (\is_object($reason) && \method_exists($reason, 'then')) {
|
||||
throw new \InvalidArgumentException('You cannot create a RejectedPromise with a promise.');
|
||||
}
|
||||
$this->reason = $reason;
|
||||
}
|
||||
|
||||
public function then(callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
// If there's no onRejected callback then just return self.
|
||||
if (!$onRejected) {
|
||||
return $this;
|
||||
}
|
||||
$queue = Utils::queue();
|
||||
$reason = $this->reason;
|
||||
$p = new Promise([$queue, 'run']);
|
||||
$queue->add(static function () use ($p, $reason, $onRejected) {
|
||||
if (Is::pending($p)) {
|
||||
try {
|
||||
// Return a resolved promise if onRejected does not throw.
|
||||
$p->resolve($onRejected($reason));
|
||||
} catch (\Throwable $e) {
|
||||
// onRejected threw, so return a rejected promise.
|
||||
$p->reject($e);
|
||||
} catch (\Exception $e) {
|
||||
// onRejected threw, so return a rejected promise.
|
||||
$p->reject($e);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return $p;
|
||||
}
|
||||
|
||||
public function otherwise(callable $onRejected)
|
||||
{
|
||||
return $this->then(null, $onRejected);
|
||||
}
|
||||
|
||||
public function wait($unwrap = \true, $defaultDelivery = null)
|
||||
{
|
||||
if ($unwrap) {
|
||||
throw Create::exceptionFor($this->reason);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getState()
|
||||
{
|
||||
return self::REJECTED;
|
||||
}
|
||||
|
||||
public function resolve($value)
|
||||
{
|
||||
throw new \LogicException('Cannot resolve a rejected promise');
|
||||
}
|
||||
|
||||
public function reject($reason)
|
||||
{
|
||||
if ($reason !== $this->reason) {
|
||||
throw new \LogicException('Cannot reject a rejected promise');
|
||||
}
|
||||
}
|
||||
|
||||
public function cancel()
|
||||
{
|
||||
// pass
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* A special exception that is thrown when waiting on a rejected promise.
|
||||
*
|
||||
* The reason value is available via the getReason() method.
|
||||
*/
|
||||
class RejectionException extends \RuntimeException
|
||||
{
|
||||
/** @var mixed Rejection reason. */
|
||||
private $reason;
|
||||
|
||||
/**
|
||||
* @param mixed $reason rejection reason
|
||||
* @param string $description Optional description
|
||||
*/
|
||||
public function __construct($reason, $description = null)
|
||||
{
|
||||
$this->reason = $reason;
|
||||
$message = 'The promise was rejected';
|
||||
if ($description) {
|
||||
$message .= ' with reason: '.$description;
|
||||
} elseif (\is_string($reason) || \is_object($reason) && \method_exists($reason, '__toString')) {
|
||||
$message .= ' with reason: '.$this->reason;
|
||||
} elseif ($reason instanceof \JsonSerializable) {
|
||||
$message .= ' with reason: '.\json_encode($this->reason, \JSON_PRETTY_PRINT);
|
||||
}
|
||||
parent::__construct($message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the rejection reason.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getReason()
|
||||
{
|
||||
return $this->reason;
|
||||
}
|
||||
}
|
||||
67
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/TaskQueue.php
vendored
Normal file
67
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/TaskQueue.php
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* A task queue that executes tasks in a FIFO order.
|
||||
*
|
||||
* This task queue class is used to settle promises asynchronously and
|
||||
* maintains a constant stack size. You can use the task queue asynchronously
|
||||
* by calling the `run()` function of the global task queue in an event loop.
|
||||
*
|
||||
* GuzzleHttp\Promise\Utils::queue()->run();
|
||||
*/
|
||||
class TaskQueue implements TaskQueueInterface
|
||||
{
|
||||
private $enableShutdown = \true;
|
||||
private $queue = [];
|
||||
|
||||
public function __construct($withShutdown = \true)
|
||||
{
|
||||
if ($withShutdown) {
|
||||
\register_shutdown_function(function () {
|
||||
if ($this->enableShutdown) {
|
||||
// Only run the tasks if an E_ERROR didn't occur.
|
||||
$err = \error_get_last();
|
||||
if (!$err || $err['type'] ^ \E_ERROR) {
|
||||
$this->run();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function isEmpty()
|
||||
{
|
||||
return !$this->queue;
|
||||
}
|
||||
|
||||
public function add(callable $task)
|
||||
{
|
||||
$this->queue[] = $task;
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
while ($task = \array_shift($this->queue)) {
|
||||
// @var callable $task
|
||||
$task();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The task queue will be run and exhausted by default when the process
|
||||
* exits IFF the exit is not the result of a PHP E_ERROR error.
|
||||
*
|
||||
* You can disable running the automatic shutdown of the queue by calling
|
||||
* this function. If you disable the task queue shutdown process, then you
|
||||
* MUST either run the task queue (as a result of running your event loop
|
||||
* or manually using the run() method) or wait on each outstanding promise.
|
||||
*
|
||||
* Note: This shutdown will occur before any destructors are triggered.
|
||||
*/
|
||||
public function disableShutdown()
|
||||
{
|
||||
$this->enableShutdown = \false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
interface TaskQueueInterface
|
||||
{
|
||||
/**
|
||||
* Returns true if the queue is empty.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmpty();
|
||||
|
||||
/**
|
||||
* Adds a task to the queue that will be executed the next time run is
|
||||
* called.
|
||||
*/
|
||||
public function add(callable $task);
|
||||
|
||||
/**
|
||||
* Execute all of the pending task in the queue.
|
||||
*/
|
||||
public function run();
|
||||
}
|
||||
258
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Utils.php
vendored
Normal file
258
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/Utils.php
vendored
Normal file
@@ -0,0 +1,258 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
final class Utils
|
||||
{
|
||||
/**
|
||||
* Get the global task queue used for promise resolution.
|
||||
*
|
||||
* This task queue MUST be run in an event loop in order for promises to be
|
||||
* settled asynchronously. It will be automatically run when synchronously
|
||||
* waiting on a promise.
|
||||
*
|
||||
* <code>
|
||||
* while ($eventLoop->isRunning()) {
|
||||
* GuzzleHttp\Promise\Utils::queue()->run();
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
* @param TaskQueueInterface $assign optionally specify a new queue instance
|
||||
*
|
||||
* @return TaskQueueInterface
|
||||
*/
|
||||
public static function queue(TaskQueueInterface $assign = null)
|
||||
{
|
||||
static $queue;
|
||||
if ($assign) {
|
||||
$queue = $assign;
|
||||
} elseif (!$queue) {
|
||||
$queue = new TaskQueue();
|
||||
}
|
||||
|
||||
return $queue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a function to run in the task queue when it is next `run()` and
|
||||
* returns a promise that is fulfilled or rejected with the result.
|
||||
*
|
||||
* @param callable $task task function to run
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function task(callable $task)
|
||||
{
|
||||
$queue = self::queue();
|
||||
$promise = new Promise([$queue, 'run']);
|
||||
$queue->add(function () use ($task, $promise) {
|
||||
try {
|
||||
if (Is::pending($promise)) {
|
||||
$promise->resolve($task());
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
$promise->reject($e);
|
||||
} catch (\Exception $e) {
|
||||
$promise->reject($e);
|
||||
}
|
||||
});
|
||||
|
||||
return $promise;
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronously waits on a promise to resolve and returns an inspection
|
||||
* state array.
|
||||
*
|
||||
* Returns a state associative array containing a "state" key mapping to a
|
||||
* valid promise state. If the state of the promise is "fulfilled", the
|
||||
* array will contain a "value" key mapping to the fulfilled value of the
|
||||
* promise. If the promise is rejected, the array will contain a "reason"
|
||||
* key mapping to the rejection reason of the promise.
|
||||
*
|
||||
* @param PromiseInterface $promise promise or value
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function inspect(PromiseInterface $promise)
|
||||
{
|
||||
try {
|
||||
return ['state' => PromiseInterface::FULFILLED, 'value' => $promise->wait()];
|
||||
} catch (RejectionException $e) {
|
||||
return ['state' => PromiseInterface::REJECTED, 'reason' => $e->getReason()];
|
||||
} catch (\Throwable $e) {
|
||||
return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
|
||||
} catch (\Exception $e) {
|
||||
return ['state' => PromiseInterface::REJECTED, 'reason' => $e];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits on all of the provided promises, but does not unwrap rejected
|
||||
* promises as thrown exception.
|
||||
*
|
||||
* Returns an array of inspection state arrays.
|
||||
*
|
||||
* @see inspect for the inspection state array format.
|
||||
*
|
||||
* @param PromiseInterface[] $promises traversable of promises to wait upon
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function inspectAll($promises)
|
||||
{
|
||||
$results = [];
|
||||
foreach ($promises as $key => $promise) {
|
||||
$results[$key] = self::inspect($promise);
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits on all of the provided promises and returns the fulfilled values.
|
||||
*
|
||||
* Returns an array that contains the value of each promise (in the same
|
||||
* order the promises were provided). An exception is thrown if any of the
|
||||
* promises are rejected.
|
||||
*
|
||||
* @param iterable<PromiseInterface> $promises iterable of PromiseInterface objects to wait on
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \Exception on error
|
||||
* @throws \Throwable on error in PHP >=7
|
||||
*/
|
||||
public static function unwrap($promises)
|
||||
{
|
||||
$results = [];
|
||||
foreach ($promises as $key => $promise) {
|
||||
$results[$key] = $promise->wait();
|
||||
}
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an array of promises, return a promise that is fulfilled when all
|
||||
* the items in the array are fulfilled.
|
||||
*
|
||||
* The promise's fulfillment value is an array with fulfillment values at
|
||||
* respective positions to the original array. If any promise in the array
|
||||
* rejects, the returned promise is rejected with the rejection reason.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
* @param bool $recursive if true, resolves new promises that might have been added to the stack during its own resolution
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function all($promises, $recursive = \false)
|
||||
{
|
||||
$results = [];
|
||||
$promise = Each::of($promises, function ($value, $idx) use (&$results) {
|
||||
$results[$idx] = $value;
|
||||
}, function ($reason, $idx, Promise $aggregate) {
|
||||
$aggregate->reject($reason);
|
||||
})->then(function () use (&$results) {
|
||||
\ksort($results);
|
||||
|
||||
return $results;
|
||||
});
|
||||
if (\true === $recursive) {
|
||||
$promise = $promise->then(function ($results) use ($recursive, &$promises) {
|
||||
foreach ($promises as $promise) {
|
||||
if (Is::pending($promise)) {
|
||||
return self::all($promises, $recursive);
|
||||
}
|
||||
}
|
||||
|
||||
return $results;
|
||||
});
|
||||
}
|
||||
|
||||
return $promise;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiate a competitive race between multiple promises or values (values
|
||||
* will become immediately fulfilled promises).
|
||||
*
|
||||
* When count amount of promises have been fulfilled, the returned promise
|
||||
* is fulfilled with an array that contains the fulfillment values of the
|
||||
* winners in order of resolution.
|
||||
*
|
||||
* This promise is rejected with a {@see AggregateException} if the number
|
||||
* of fulfilled promises is less than the desired $count.
|
||||
*
|
||||
* @param int $count total number of promises
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function some($count, $promises)
|
||||
{
|
||||
$results = [];
|
||||
$rejections = [];
|
||||
|
||||
return Each::of($promises, function ($value, $idx, PromiseInterface $p) use (&$results, $count) {
|
||||
if (Is::settled($p)) {
|
||||
return;
|
||||
}
|
||||
$results[$idx] = $value;
|
||||
if (\count($results) >= $count) {
|
||||
$p->resolve(null);
|
||||
}
|
||||
}, function ($reason) use (&$rejections) {
|
||||
$rejections[] = $reason;
|
||||
})->then(function () use (&$results, &$rejections, $count) {
|
||||
if (\count($results) !== $count) {
|
||||
throw new AggregateException('Not enough promises to fulfill count', $rejections);
|
||||
}
|
||||
\ksort($results);
|
||||
|
||||
return \array_values($results);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Like some(), with 1 as count. However, if the promise fulfills, the
|
||||
* fulfillment value is not an array of 1 but the value directly.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function any($promises)
|
||||
{
|
||||
return self::some(1, $promises)->then(function ($values) {
|
||||
return $values[0];
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a promise that is fulfilled when all of the provided promises have
|
||||
* been fulfilled or rejected.
|
||||
*
|
||||
* The returned promise is fulfilled with an array of inspection state arrays.
|
||||
*
|
||||
* @see inspect for the inspection state array format.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*/
|
||||
public static function settle($promises)
|
||||
{
|
||||
$results = [];
|
||||
|
||||
return Each::of($promises, function ($value, $idx) use (&$results) {
|
||||
$results[$idx] = ['state' => PromiseInterface::FULFILLED, 'value' => $value];
|
||||
}, function ($reason, $idx) use (&$results) {
|
||||
$results[$idx] = ['state' => PromiseInterface::REJECTED, 'reason' => $reason];
|
||||
})->then(function () use (&$results) {
|
||||
\ksort($results);
|
||||
|
||||
return $results;
|
||||
});
|
||||
}
|
||||
}
|
||||
353
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/functions.php
vendored
Normal file
353
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/promises/src/functions.php
vendored
Normal file
@@ -0,0 +1,353 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Promise;
|
||||
|
||||
/**
|
||||
* Get the global task queue used for promise resolution.
|
||||
*
|
||||
* This task queue MUST be run in an event loop in order for promises to be
|
||||
* settled asynchronously. It will be automatically run when synchronously
|
||||
* waiting on a promise.
|
||||
*
|
||||
* <code>
|
||||
* while ($eventLoop->isRunning()) {
|
||||
* GuzzleHttp\Promise\queue()->run();
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
* @param TaskQueueInterface $assign optionally specify a new queue instance
|
||||
*
|
||||
* @return TaskQueueInterface
|
||||
*
|
||||
* @deprecated queue will be removed in guzzlehttp/promises:2.0. Use Utils::queue instead.
|
||||
*/
|
||||
function queue(TaskQueueInterface $assign = null)
|
||||
{
|
||||
return Utils::queue($assign);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a function to run in the task queue when it is next `run()` and returns
|
||||
* a promise that is fulfilled or rejected with the result.
|
||||
*
|
||||
* @param callable $task task function to run
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated task will be removed in guzzlehttp/promises:2.0. Use Utils::task instead.
|
||||
*/
|
||||
function task(callable $task)
|
||||
{
|
||||
return Utils::task($task);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a promise for a value if the value is not a promise.
|
||||
*
|
||||
* @param mixed $value promise or value
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated promise_for will be removed in guzzlehttp/promises:2.0. Use Create::promiseFor instead.
|
||||
*/
|
||||
function promise_for($value)
|
||||
{
|
||||
return Create::promiseFor($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a rejected promise for a reason if the reason is not a promise. If
|
||||
* the provided reason is a promise, then it is returned as-is.
|
||||
*
|
||||
* @param mixed $reason promise or reason
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead.
|
||||
*/
|
||||
function rejection_for($reason)
|
||||
{
|
||||
return Create::rejectionFor($reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an exception for a rejected promise value.
|
||||
*
|
||||
* @param mixed $reason
|
||||
*
|
||||
* @return \Exception|\Throwable
|
||||
*
|
||||
* @deprecated exception_for will be removed in guzzlehttp/promises:2.0. Use Create::exceptionFor instead.
|
||||
*/
|
||||
function exception_for($reason)
|
||||
{
|
||||
return Create::exceptionFor($reason);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an iterator for the given value.
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return \Iterator
|
||||
*
|
||||
* @deprecated iter_for will be removed in guzzlehttp/promises:2.0. Use Create::iterFor instead.
|
||||
*/
|
||||
function iter_for($value)
|
||||
{
|
||||
return Create::iterFor($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Synchronously waits on a promise to resolve and returns an inspection state
|
||||
* array.
|
||||
*
|
||||
* Returns a state associative array containing a "state" key mapping to a
|
||||
* valid promise state. If the state of the promise is "fulfilled", the array
|
||||
* will contain a "value" key mapping to the fulfilled value of the promise. If
|
||||
* the promise is rejected, the array will contain a "reason" key mapping to
|
||||
* the rejection reason of the promise.
|
||||
*
|
||||
* @param PromiseInterface $promise promise or value
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspect instead.
|
||||
*/
|
||||
function inspect(PromiseInterface $promise)
|
||||
{
|
||||
return Utils::inspect($promise);
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits on all of the provided promises, but does not unwrap rejected promises
|
||||
* as thrown exception.
|
||||
*
|
||||
* Returns an array of inspection state arrays.
|
||||
*
|
||||
* @see inspect for the inspection state array format.
|
||||
*
|
||||
* @param PromiseInterface[] $promises traversable of promises to wait upon
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @deprecated inspect will be removed in guzzlehttp/promises:2.0. Use Utils::inspectAll instead.
|
||||
*/
|
||||
function inspect_all($promises)
|
||||
{
|
||||
return Utils::inspectAll($promises);
|
||||
}
|
||||
|
||||
/**
|
||||
* Waits on all of the provided promises and returns the fulfilled values.
|
||||
*
|
||||
* Returns an array that contains the value of each promise (in the same order
|
||||
* the promises were provided). An exception is thrown if any of the promises
|
||||
* are rejected.
|
||||
*
|
||||
* @param iterable<PromiseInterface> $promises iterable of PromiseInterface objects to wait on
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @throws \Exception on error
|
||||
* @throws \Throwable on error in PHP >=7
|
||||
*
|
||||
* @deprecated unwrap will be removed in guzzlehttp/promises:2.0. Use Utils::unwrap instead.
|
||||
*/
|
||||
function unwrap($promises)
|
||||
{
|
||||
return Utils::unwrap($promises);
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an array of promises, return a promise that is fulfilled when all the
|
||||
* items in the array are fulfilled.
|
||||
*
|
||||
* The promise's fulfillment value is an array with fulfillment values at
|
||||
* respective positions to the original array. If any promise in the array
|
||||
* rejects, the returned promise is rejected with the rejection reason.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
* @param bool $recursive if true, resolves new promises that might have been added to the stack during its own resolution
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated all will be removed in guzzlehttp/promises:2.0. Use Utils::all instead.
|
||||
*/
|
||||
function all($promises, $recursive = \false)
|
||||
{
|
||||
return Utils::all($promises, $recursive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initiate a competitive race between multiple promises or values (values will
|
||||
* become immediately fulfilled promises).
|
||||
*
|
||||
* When count amount of promises have been fulfilled, the returned promise is
|
||||
* fulfilled with an array that contains the fulfillment values of the winners
|
||||
* in order of resolution.
|
||||
*
|
||||
* This promise is rejected with a {@see AggregateException} if the number of
|
||||
* fulfilled promises is less than the desired $count.
|
||||
*
|
||||
* @param int $count total number of promises
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated some will be removed in guzzlehttp/promises:2.0. Use Utils::some instead.
|
||||
*/
|
||||
function some($count, $promises)
|
||||
{
|
||||
return Utils::some($count, $promises);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like some(), with 1 as count. However, if the promise fulfills, the
|
||||
* fulfillment value is not an array of 1 but the value directly.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated any will be removed in guzzlehttp/promises:2.0. Use Utils::any instead.
|
||||
*/
|
||||
function any($promises)
|
||||
{
|
||||
return Utils::any($promises);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a promise that is fulfilled when all of the provided promises have
|
||||
* been fulfilled or rejected.
|
||||
*
|
||||
* The returned promise is fulfilled with an array of inspection state arrays.
|
||||
*
|
||||
* @see inspect for the inspection state array format.
|
||||
*
|
||||
* @param mixed $promises promises or values
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated settle will be removed in guzzlehttp/promises:2.0. Use Utils::settle instead.
|
||||
*/
|
||||
function settle($promises)
|
||||
{
|
||||
return Utils::settle($promises);
|
||||
}
|
||||
|
||||
/**
|
||||
* Given an iterator that yields promises or values, returns a promise that is
|
||||
* fulfilled with a null value when the iterator has been consumed or the
|
||||
* aggregate promise has been fulfilled or rejected.
|
||||
*
|
||||
* $onFulfilled is a function that accepts the fulfilled value, iterator index,
|
||||
* and the aggregate promise. The callback can invoke any necessary side
|
||||
* effects and choose to resolve or reject the aggregate if needed.
|
||||
*
|
||||
* $onRejected is a function that accepts the rejection reason, iterator index,
|
||||
* and the aggregate promise. The callback can invoke any necessary side
|
||||
* effects and choose to resolve or reject the aggregate if needed.
|
||||
*
|
||||
* @param mixed $iterable iterator or array to iterate over
|
||||
* @param callable $onFulfilled
|
||||
* @param callable $onRejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated each will be removed in guzzlehttp/promises:2.0. Use Each::of instead.
|
||||
*/
|
||||
function each($iterable, callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
return Each::of($iterable, $onFulfilled, $onRejected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like each, but only allows a certain number of outstanding promises at any
|
||||
* given time.
|
||||
*
|
||||
* $concurrency may be an integer or a function that accepts the number of
|
||||
* pending promises and returns a numeric concurrency limit value to allow for
|
||||
* dynamic a concurrency size.
|
||||
*
|
||||
* @param mixed $iterable
|
||||
* @param callable|int $concurrency
|
||||
* @param callable $onFulfilled
|
||||
* @param callable $onRejected
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated each_limit will be removed in guzzlehttp/promises:2.0. Use Each::ofLimit instead.
|
||||
*/
|
||||
function each_limit($iterable, $concurrency, callable $onFulfilled = null, callable $onRejected = null)
|
||||
{
|
||||
return Each::ofLimit($iterable, $concurrency, $onFulfilled, $onRejected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like each_limit, but ensures that no promise in the given $iterable argument
|
||||
* is rejected. If any promise is rejected, then the aggregate promise is
|
||||
* rejected with the encountered rejection.
|
||||
*
|
||||
* @param mixed $iterable
|
||||
* @param callable|int $concurrency
|
||||
* @param callable $onFulfilled
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated each_limit_all will be removed in guzzlehttp/promises:2.0. Use Each::ofLimitAll instead.
|
||||
*/
|
||||
function each_limit_all($iterable, $concurrency, callable $onFulfilled = null)
|
||||
{
|
||||
return Each::ofLimitAll($iterable, $concurrency, $onFulfilled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is fulfilled.
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @deprecated is_fulfilled will be removed in guzzlehttp/promises:2.0. Use Is::fulfilled instead.
|
||||
*/
|
||||
function is_fulfilled(PromiseInterface $promise)
|
||||
{
|
||||
return Is::fulfilled($promise);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is rejected.
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @deprecated is_rejected will be removed in guzzlehttp/promises:2.0. Use Is::rejected instead.
|
||||
*/
|
||||
function is_rejected(PromiseInterface $promise)
|
||||
{
|
||||
return Is::rejected($promise);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if a promise is fulfilled or rejected.
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @deprecated is_settled will be removed in guzzlehttp/promises:2.0. Use Is::settled instead.
|
||||
*/
|
||||
function is_settled(PromiseInterface $promise)
|
||||
{
|
||||
return Is::settled($promise);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new coroutine.
|
||||
*
|
||||
* @see Coroutine
|
||||
*
|
||||
* @return PromiseInterface
|
||||
*
|
||||
* @deprecated coroutine will be removed in guzzlehttp/promises:2.0. Use Coroutine::of instead.
|
||||
*/
|
||||
function coroutine(callable $generatorFn)
|
||||
{
|
||||
return Coroutine::of($generatorFn);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor;
|
||||
|
||||
// Don't redefine the functions if included multiple times.
|
||||
if (!\function_exists('_JchOptimizeVendor\\GuzzleHttp\\Promise\\promise_for')) {
|
||||
require __DIR__.'/functions.php';
|
||||
}
|
||||
26
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/LICENSE
vendored
Normal file
26
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/LICENSE
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Michael Dowling <mtdowling@gmail.com>
|
||||
Copyright (c) 2015 Márk Sági-Kazár <mark.sagikazar@gmail.com>
|
||||
Copyright (c) 2015 Graham Campbell <hello@gjcampbell.co.uk>
|
||||
Copyright (c) 2016 Tobias Schultze <webmaster@tubo-world.de>
|
||||
Copyright (c) 2016 George Mponos <gmponos@gmail.com>
|
||||
Copyright (c) 2018 Tobias Nyholm <tobias.nyholm@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
229
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/AppendStream.php
vendored
Normal file
229
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/AppendStream.php
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Reads from multiple streams, one after the other.
|
||||
*
|
||||
* This is a read-only stream decorator.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class AppendStream implements StreamInterface
|
||||
{
|
||||
/** @var StreamInterface[] Streams being decorated */
|
||||
private $streams = [];
|
||||
private $seekable = \true;
|
||||
private $current = 0;
|
||||
private $pos = 0;
|
||||
|
||||
/**
|
||||
* @param StreamInterface[] $streams Streams to decorate. Each stream must
|
||||
* be readable.
|
||||
*/
|
||||
public function __construct(array $streams = [])
|
||||
{
|
||||
foreach ($streams as $stream) {
|
||||
$this->addStream($stream);
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
try {
|
||||
$this->rewind();
|
||||
|
||||
return $this->getContents();
|
||||
} catch (\Exception $e) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a stream to the AppendStream.
|
||||
*
|
||||
* @param StreamInterface $stream Stream to append. Must be readable.
|
||||
*
|
||||
* @throws \InvalidArgumentException if the stream is not readable
|
||||
*/
|
||||
public function addStream(StreamInterface $stream)
|
||||
{
|
||||
if (!$stream->isReadable()) {
|
||||
throw new \InvalidArgumentException('Each stream must be readable');
|
||||
}
|
||||
// The stream is only seekable if all streams are seekable
|
||||
if (!$stream->isSeekable()) {
|
||||
$this->seekable = \false;
|
||||
}
|
||||
$this->streams[] = $stream;
|
||||
}
|
||||
|
||||
public function getContents()
|
||||
{
|
||||
return Utils::copyToString($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes each attached stream.
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
$this->pos = $this->current = 0;
|
||||
$this->seekable = \true;
|
||||
foreach ($this->streams as $stream) {
|
||||
$stream->close();
|
||||
}
|
||||
$this->streams = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Detaches each attached stream.
|
||||
*
|
||||
* Returns null as it's not clear which underlying stream resource to return.
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function detach()
|
||||
{
|
||||
$this->pos = $this->current = 0;
|
||||
$this->seekable = \true;
|
||||
foreach ($this->streams as $stream) {
|
||||
$stream->detach();
|
||||
}
|
||||
$this->streams = [];
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function tell()
|
||||
{
|
||||
return $this->pos;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to calculate the size by adding the size of each stream.
|
||||
*
|
||||
* If any of the streams do not return a valid number, then the size of the
|
||||
* append stream cannot be determined and null is returned.
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getSize()
|
||||
{
|
||||
$size = 0;
|
||||
foreach ($this->streams as $stream) {
|
||||
$s = $stream->getSize();
|
||||
if (null === $s) {
|
||||
return null;
|
||||
}
|
||||
$size += $s;
|
||||
}
|
||||
|
||||
return $size;
|
||||
}
|
||||
|
||||
public function eof()
|
||||
{
|
||||
return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof();
|
||||
}
|
||||
|
||||
public function rewind()
|
||||
{
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempts to seek to the given position. Only supports SEEK_SET.
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function seek($offset, $whence = \SEEK_SET)
|
||||
{
|
||||
if (!$this->seekable) {
|
||||
throw new \RuntimeException('This AppendStream is not seekable');
|
||||
}
|
||||
if (\SEEK_SET !== $whence) {
|
||||
throw new \RuntimeException('The AppendStream can only seek with SEEK_SET');
|
||||
}
|
||||
$this->pos = $this->current = 0;
|
||||
// Rewind each stream
|
||||
foreach ($this->streams as $i => $stream) {
|
||||
try {
|
||||
$stream->rewind();
|
||||
} catch (\Exception $e) {
|
||||
throw new \RuntimeException('Unable to seek stream '.$i.' of the AppendStream', 0, $e);
|
||||
}
|
||||
}
|
||||
// Seek to the actual position by reading from each stream
|
||||
while ($this->pos < $offset && !$this->eof()) {
|
||||
$result = $this->read(\min(8096, $offset - $this->pos));
|
||||
if ('' === $result) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads from all of the appended streams until the length is met or EOF.
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function read($length)
|
||||
{
|
||||
$buffer = '';
|
||||
$total = \count($this->streams) - 1;
|
||||
$remaining = $length;
|
||||
$progressToNext = \false;
|
||||
while ($remaining > 0) {
|
||||
// Progress to the next stream if needed.
|
||||
if ($progressToNext || $this->streams[$this->current]->eof()) {
|
||||
$progressToNext = \false;
|
||||
if ($this->current === $total) {
|
||||
break;
|
||||
}
|
||||
++$this->current;
|
||||
}
|
||||
$result = $this->streams[$this->current]->read($remaining);
|
||||
// Using a loose comparison here to match on '', false, and null
|
||||
if (null == $result) {
|
||||
$progressToNext = \true;
|
||||
|
||||
continue;
|
||||
}
|
||||
$buffer .= $result;
|
||||
$remaining = $length - \strlen($buffer);
|
||||
}
|
||||
$this->pos += \strlen($buffer);
|
||||
|
||||
return $buffer;
|
||||
}
|
||||
|
||||
public function isReadable()
|
||||
{
|
||||
return \true;
|
||||
}
|
||||
|
||||
public function isWritable()
|
||||
{
|
||||
return \false;
|
||||
}
|
||||
|
||||
public function isSeekable()
|
||||
{
|
||||
return $this->seekable;
|
||||
}
|
||||
|
||||
public function write($string)
|
||||
{
|
||||
throw new \RuntimeException('Cannot write to an AppendStream');
|
||||
}
|
||||
|
||||
public function getMetadata($key = null)
|
||||
{
|
||||
return $key ? null : [];
|
||||
}
|
||||
}
|
||||
144
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/BufferStream.php
vendored
Normal file
144
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/BufferStream.php
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Provides a buffer stream that can be written to to fill a buffer, and read
|
||||
* from to remove bytes from the buffer.
|
||||
*
|
||||
* This stream returns a "hwm" metadata value that tells upstream consumers
|
||||
* what the configured high water mark of the stream is, or the maximum
|
||||
* preferred size of the buffer.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class BufferStream implements StreamInterface
|
||||
{
|
||||
private $hwm;
|
||||
private $buffer = '';
|
||||
|
||||
/**
|
||||
* @param int $hwm High water mark, representing the preferred maximum
|
||||
* buffer size. If the size of the buffer exceeds the high
|
||||
* water mark, then calls to write will continue to succeed
|
||||
* but will return false to inform writers to slow down
|
||||
* until the buffer has been drained by reading from it.
|
||||
*/
|
||||
public function __construct($hwm = 16384)
|
||||
{
|
||||
$this->hwm = $hwm;
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getContents();
|
||||
}
|
||||
|
||||
public function getContents()
|
||||
{
|
||||
$buffer = $this->buffer;
|
||||
$this->buffer = '';
|
||||
|
||||
return $buffer;
|
||||
}
|
||||
|
||||
public function close()
|
||||
{
|
||||
$this->buffer = '';
|
||||
}
|
||||
|
||||
public function detach()
|
||||
{
|
||||
$this->close();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getSize()
|
||||
{
|
||||
return \strlen($this->buffer);
|
||||
}
|
||||
|
||||
public function isReadable()
|
||||
{
|
||||
return \true;
|
||||
}
|
||||
|
||||
public function isWritable()
|
||||
{
|
||||
return \true;
|
||||
}
|
||||
|
||||
public function isSeekable()
|
||||
{
|
||||
return \false;
|
||||
}
|
||||
|
||||
public function rewind()
|
||||
{
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
public function seek($offset, $whence = \SEEK_SET)
|
||||
{
|
||||
throw new \RuntimeException('Cannot seek a BufferStream');
|
||||
}
|
||||
|
||||
public function eof()
|
||||
{
|
||||
return 0 === \strlen($this->buffer);
|
||||
}
|
||||
|
||||
public function tell()
|
||||
{
|
||||
throw new \RuntimeException('Cannot determine the position of a BufferStream');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reads data from the buffer.
|
||||
*
|
||||
* @param mixed $length
|
||||
*/
|
||||
public function read($length)
|
||||
{
|
||||
$currentLength = \strlen($this->buffer);
|
||||
if ($length >= $currentLength) {
|
||||
// No need to slice the buffer because we don't have enough data.
|
||||
$result = $this->buffer;
|
||||
$this->buffer = '';
|
||||
} else {
|
||||
// Slice up the result to provide a subset of the buffer.
|
||||
$result = \substr($this->buffer, 0, $length);
|
||||
$this->buffer = \substr($this->buffer, $length);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes data to the buffer.
|
||||
*
|
||||
* @param mixed $string
|
||||
*/
|
||||
public function write($string)
|
||||
{
|
||||
$this->buffer .= $string;
|
||||
// TODO: What should happen here?
|
||||
if (\strlen($this->buffer) >= $this->hwm) {
|
||||
return \false;
|
||||
}
|
||||
|
||||
return \strlen($string);
|
||||
}
|
||||
|
||||
public function getMetadata($key = null)
|
||||
{
|
||||
if ('hwm' == $key) {
|
||||
return $this->hwm;
|
||||
}
|
||||
|
||||
return $key ? null : [];
|
||||
}
|
||||
}
|
||||
137
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/CachingStream.php
vendored
Normal file
137
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/CachingStream.php
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Stream decorator that can cache previously read bytes from a sequentially
|
||||
* read stream.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class CachingStream implements StreamInterface
|
||||
{
|
||||
use StreamDecoratorTrait;
|
||||
|
||||
/** @var StreamInterface Stream being wrapped */
|
||||
private $remoteStream;
|
||||
|
||||
/** @var int Number of bytes to skip reading due to a write on the buffer */
|
||||
private $skipReadBytes = 0;
|
||||
|
||||
/**
|
||||
* We will treat the buffer object as the body of the stream.
|
||||
*
|
||||
* @param StreamInterface $stream Stream to cache. The cursor is assumed to be at the beginning of the stream.
|
||||
* @param StreamInterface $target Optionally specify where data is cached
|
||||
*/
|
||||
public function __construct(StreamInterface $stream, StreamInterface $target = null)
|
||||
{
|
||||
$this->remoteStream = $stream;
|
||||
$this->stream = $target ?: new Stream(Utils::tryFopen('php://temp', 'r+'));
|
||||
}
|
||||
|
||||
public function getSize()
|
||||
{
|
||||
$remoteSize = $this->remoteStream->getSize();
|
||||
if (null === $remoteSize) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return \max($this->stream->getSize(), $remoteSize);
|
||||
}
|
||||
|
||||
public function rewind()
|
||||
{
|
||||
$this->seek(0);
|
||||
}
|
||||
|
||||
public function seek($offset, $whence = \SEEK_SET)
|
||||
{
|
||||
if (\SEEK_SET == $whence) {
|
||||
$byte = $offset;
|
||||
} elseif (\SEEK_CUR == $whence) {
|
||||
$byte = $offset + $this->tell();
|
||||
} elseif (\SEEK_END == $whence) {
|
||||
$size = $this->remoteStream->getSize();
|
||||
if (null === $size) {
|
||||
$size = $this->cacheEntireStream();
|
||||
}
|
||||
$byte = $size + $offset;
|
||||
} else {
|
||||
throw new \InvalidArgumentException('Invalid whence');
|
||||
}
|
||||
$diff = $byte - $this->stream->getSize();
|
||||
if ($diff > 0) {
|
||||
// Read the remoteStream until we have read in at least the amount
|
||||
// of bytes requested, or we reach the end of the file.
|
||||
while ($diff > 0 && !$this->remoteStream->eof()) {
|
||||
$this->read($diff);
|
||||
$diff = $byte - $this->stream->getSize();
|
||||
}
|
||||
} else {
|
||||
// We can just do a normal seek since we've already seen this byte.
|
||||
$this->stream->seek($byte);
|
||||
}
|
||||
}
|
||||
|
||||
public function read($length)
|
||||
{
|
||||
// Perform a regular read on any previously read data from the buffer
|
||||
$data = $this->stream->read($length);
|
||||
$remaining = $length - \strlen($data);
|
||||
// More data was requested so read from the remote stream
|
||||
if ($remaining) {
|
||||
// If data was written to the buffer in a position that would have
|
||||
// been filled from the remote stream, then we must skip bytes on
|
||||
// the remote stream to emulate overwriting bytes from that
|
||||
// position. This mimics the behavior of other PHP stream wrappers.
|
||||
$remoteData = $this->remoteStream->read($remaining + $this->skipReadBytes);
|
||||
if ($this->skipReadBytes) {
|
||||
$len = \strlen($remoteData);
|
||||
$remoteData = \substr($remoteData, $this->skipReadBytes);
|
||||
$this->skipReadBytes = \max(0, $this->skipReadBytes - $len);
|
||||
}
|
||||
$data .= $remoteData;
|
||||
$this->stream->write($remoteData);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function write($string)
|
||||
{
|
||||
// When appending to the end of the currently read stream, you'll want
|
||||
// to skip bytes from being read from the remote stream to emulate
|
||||
// other stream wrappers. Basically replacing bytes of data of a fixed
|
||||
// length.
|
||||
$overflow = \strlen($string) + $this->tell() - $this->remoteStream->tell();
|
||||
if ($overflow > 0) {
|
||||
$this->skipReadBytes += $overflow;
|
||||
}
|
||||
|
||||
return $this->stream->write($string);
|
||||
}
|
||||
|
||||
public function eof()
|
||||
{
|
||||
return $this->stream->eof() && $this->remoteStream->eof();
|
||||
}
|
||||
|
||||
/**
|
||||
* Close both the remote stream and buffer stream.
|
||||
*/
|
||||
public function close()
|
||||
{
|
||||
$this->remoteStream->close() && $this->stream->close();
|
||||
}
|
||||
|
||||
private function cacheEntireStream()
|
||||
{
|
||||
$target = new FnStream(['write' => 'strlen']);
|
||||
Utils::copyToStream($this, $target);
|
||||
|
||||
return $this->tell();
|
||||
}
|
||||
}
|
||||
42
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/DroppingStream.php
vendored
Normal file
42
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/DroppingStream.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Stream decorator that begins dropping data once the size of the underlying
|
||||
* stream becomes too full.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class DroppingStream implements StreamInterface
|
||||
{
|
||||
use StreamDecoratorTrait;
|
||||
private $maxLength;
|
||||
|
||||
/**
|
||||
* @param StreamInterface $stream underlying stream to decorate
|
||||
* @param int $maxLength maximum size before dropping data
|
||||
*/
|
||||
public function __construct(StreamInterface $stream, $maxLength)
|
||||
{
|
||||
$this->stream = $stream;
|
||||
$this->maxLength = $maxLength;
|
||||
}
|
||||
|
||||
public function write($string)
|
||||
{
|
||||
$diff = $this->maxLength - $this->stream->getSize();
|
||||
// Begin returning 0 when the underlying stream is too large.
|
||||
if ($diff <= 0) {
|
||||
return 0;
|
||||
}
|
||||
// Write the stream or a subset of the stream if needed.
|
||||
if (\strlen($string) < $diff) {
|
||||
return $this->stream->write($string);
|
||||
}
|
||||
|
||||
return $this->stream->write(\substr($string, 0, $diff));
|
||||
}
|
||||
}
|
||||
161
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/FnStream.php
vendored
Normal file
161
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/FnStream.php
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Compose stream implementations based on a hash of functions.
|
||||
*
|
||||
* Allows for easy testing and extension of a provided stream without needing
|
||||
* to create a concrete class for a simple extension point.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class FnStream implements StreamInterface
|
||||
{
|
||||
/** @var array */
|
||||
private $methods;
|
||||
|
||||
/** @var array Methods that must be implemented in the given array */
|
||||
private static $slots = ['__toString', 'close', 'detach', 'rewind', 'getSize', 'tell', 'eof', 'isSeekable', 'seek', 'isWritable', 'write', 'isReadable', 'read', 'getContents', 'getMetadata'];
|
||||
|
||||
/**
|
||||
* @param array $methods hash of method name to a callable
|
||||
*/
|
||||
public function __construct(array $methods)
|
||||
{
|
||||
$this->methods = $methods;
|
||||
// Create the functions on the class
|
||||
foreach ($methods as $name => $fn) {
|
||||
$this->{'_fn_'.$name} = $fn;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The close method is called on the underlying stream only if possible.
|
||||
*/
|
||||
public function __destruct()
|
||||
{
|
||||
if (isset($this->_fn_close)) {
|
||||
\call_user_func($this->_fn_close);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Lazily determine which methods are not implemented.
|
||||
*
|
||||
* @param mixed $name
|
||||
*
|
||||
* @throws \BadMethodCallException
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
throw new \BadMethodCallException(\str_replace('_fn_', '', $name).'() is not implemented in the FnStream');
|
||||
}
|
||||
|
||||
/**
|
||||
* An unserialize would allow the __destruct to run when the unserialized value goes out of scope.
|
||||
*
|
||||
* @throws \LogicException
|
||||
*/
|
||||
public function __wakeup()
|
||||
{
|
||||
throw new \LogicException('FnStream should never be unserialized');
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
{
|
||||
return \call_user_func($this->_fn___toString);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds custom functionality to an underlying stream by intercepting
|
||||
* specific method calls.
|
||||
*
|
||||
* @param StreamInterface $stream Stream to decorate
|
||||
* @param array $methods Hash of method name to a closure
|
||||
*
|
||||
* @return FnStream
|
||||
*/
|
||||
public static function decorate(StreamInterface $stream, array $methods)
|
||||
{
|
||||
// If any of the required methods were not provided, then simply
|
||||
// proxy to the decorated stream.
|
||||
foreach (\array_diff(self::$slots, \array_keys($methods)) as $diff) {
|
||||
$methods[$diff] = [$stream, $diff];
|
||||
}
|
||||
|
||||
return new self($methods);
|
||||
}
|
||||
|
||||
public function close()
|
||||
{
|
||||
return \call_user_func($this->_fn_close);
|
||||
}
|
||||
|
||||
public function detach()
|
||||
{
|
||||
return \call_user_func($this->_fn_detach);
|
||||
}
|
||||
|
||||
public function getSize()
|
||||
{
|
||||
return \call_user_func($this->_fn_getSize);
|
||||
}
|
||||
|
||||
public function tell()
|
||||
{
|
||||
return \call_user_func($this->_fn_tell);
|
||||
}
|
||||
|
||||
public function eof()
|
||||
{
|
||||
return \call_user_func($this->_fn_eof);
|
||||
}
|
||||
|
||||
public function isSeekable()
|
||||
{
|
||||
return \call_user_func($this->_fn_isSeekable);
|
||||
}
|
||||
|
||||
public function rewind()
|
||||
{
|
||||
\call_user_func($this->_fn_rewind);
|
||||
}
|
||||
|
||||
public function seek($offset, $whence = \SEEK_SET)
|
||||
{
|
||||
\call_user_func($this->_fn_seek, $offset, $whence);
|
||||
}
|
||||
|
||||
public function isWritable()
|
||||
{
|
||||
return \call_user_func($this->_fn_isWritable);
|
||||
}
|
||||
|
||||
public function write($string)
|
||||
{
|
||||
return \call_user_func($this->_fn_write, $string);
|
||||
}
|
||||
|
||||
public function isReadable()
|
||||
{
|
||||
return \call_user_func($this->_fn_isReadable);
|
||||
}
|
||||
|
||||
public function read($length)
|
||||
{
|
||||
return \call_user_func($this->_fn_read, $length);
|
||||
}
|
||||
|
||||
public function getContents()
|
||||
{
|
||||
return \call_user_func($this->_fn_getContents);
|
||||
}
|
||||
|
||||
public function getMetadata($key = null)
|
||||
{
|
||||
return \call_user_func($this->_fn_getMetadata, $key);
|
||||
}
|
||||
}
|
||||
70
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/Header.php
vendored
Normal file
70
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/Header.php
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
final class Header
|
||||
{
|
||||
/**
|
||||
* Parse an array of header values containing ";" separated data into an
|
||||
* array of associative arrays representing the header key value pair data
|
||||
* of the header. When a parameter does not contain a value, but just
|
||||
* contains a key, this function will inject a key with a '' string value.
|
||||
*
|
||||
* @param array|string $header header to parse into components
|
||||
*
|
||||
* @return array returns the parsed header values
|
||||
*/
|
||||
public static function parse($header)
|
||||
{
|
||||
static $trimmed = "\"' \n\t\r";
|
||||
$params = $matches = [];
|
||||
foreach (self::normalize($header) as $val) {
|
||||
$part = [];
|
||||
foreach (\preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) {
|
||||
if (\preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) {
|
||||
$m = $matches[0];
|
||||
if (isset($m[1])) {
|
||||
$part[\trim($m[0], $trimmed)] = \trim($m[1], $trimmed);
|
||||
} else {
|
||||
$part[] = \trim($m[0], $trimmed);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($part) {
|
||||
$params[] = $part;
|
||||
}
|
||||
}
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts an array of header values that may contain comma separated
|
||||
* headers into an array of headers with no comma separated values.
|
||||
*
|
||||
* @param array|string $header header to normalize
|
||||
*
|
||||
* @return array returns the normalized header field values
|
||||
*/
|
||||
public static function normalize($header)
|
||||
{
|
||||
if (!\is_array($header)) {
|
||||
return \array_map('trim', \explode(',', $header));
|
||||
}
|
||||
$result = [];
|
||||
foreach ($header as $value) {
|
||||
foreach ((array) $value as $v) {
|
||||
if (\false === \strpos($v, ',')) {
|
||||
$result[] = $v;
|
||||
|
||||
continue;
|
||||
}
|
||||
foreach (\preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) {
|
||||
$result[] = \trim($vv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
52
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/InflateStream.php
vendored
Normal file
52
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/InflateStream.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Uses PHP's zlib.inflate filter to inflate deflate or gzipped content.
|
||||
*
|
||||
* This stream decorator skips the first 10 bytes of the given stream to remove
|
||||
* the gzip header, converts the provided stream to a PHP stream resource,
|
||||
* then appends the zlib.inflate filter. The stream is then converted back
|
||||
* to a Guzzle stream resource to be used as a Guzzle stream.
|
||||
*
|
||||
* @see http://tools.ietf.org/html/rfc1952
|
||||
* @see http://php.net/manual/en/filters.compression.php
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class InflateStream implements StreamInterface
|
||||
{
|
||||
use StreamDecoratorTrait;
|
||||
|
||||
public function __construct(StreamInterface $stream)
|
||||
{
|
||||
// read the first 10 bytes, ie. gzip header
|
||||
$header = $stream->read(10);
|
||||
$filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header);
|
||||
// Skip the header, that is 10 + length of filename + 1 (nil) bytes
|
||||
$stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength);
|
||||
$resource = StreamWrapper::getResource($stream);
|
||||
\stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ);
|
||||
$this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header)
|
||||
{
|
||||
$filename_header_length = 0;
|
||||
if ('08' === \substr(\bin2hex($header), 6, 2)) {
|
||||
// we have a filename, read until nil
|
||||
$filename_header_length = 1;
|
||||
while ($stream->read(1) !== \chr(0)) {
|
||||
++$filename_header_length;
|
||||
}
|
||||
}
|
||||
|
||||
return $filename_header_length;
|
||||
}
|
||||
}
|
||||
42
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php
vendored
Normal file
42
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/LazyOpenStream.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Lazily reads or writes to a file that is opened only after an IO operation
|
||||
* take place on the stream.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class LazyOpenStream implements StreamInterface
|
||||
{
|
||||
use StreamDecoratorTrait;
|
||||
|
||||
/** @var string File to open */
|
||||
private $filename;
|
||||
|
||||
/** @var string */
|
||||
private $mode;
|
||||
|
||||
/**
|
||||
* @param string $filename File to lazily open
|
||||
* @param string $mode fopen mode to use when opening the stream
|
||||
*/
|
||||
public function __construct($filename, $mode)
|
||||
{
|
||||
$this->filename = $filename;
|
||||
$this->mode = $mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the underlying stream lazily when required.
|
||||
*
|
||||
* @return StreamInterface
|
||||
*/
|
||||
protected function createStream()
|
||||
{
|
||||
return Utils::streamFor(Utils::tryFopen($this->filename, $this->mode));
|
||||
}
|
||||
}
|
||||
144
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/LimitStream.php
vendored
Normal file
144
administrator/components/com_jchoptimize/lib/vendor/guzzlehttp/psr7/src/LimitStream.php
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
namespace _JchOptimizeVendor\GuzzleHttp\Psr7;
|
||||
|
||||
use _JchOptimizeVendor\Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Decorator used to return only a subset of a stream.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class LimitStream implements StreamInterface
|
||||
{
|
||||
use StreamDecoratorTrait;
|
||||
|
||||
/** @var int Offset to start reading from */
|
||||
private $offset;
|
||||
|
||||
/** @var int Limit the number of bytes that can be read */
|
||||
private $limit;
|
||||
|
||||
/**
|
||||
* @param StreamInterface $stream Stream to wrap
|
||||
* @param int $limit Total number of bytes to allow to be read
|
||||
* from the stream. Pass -1 for no limit.
|
||||
* @param int $offset position to seek to before reading (only
|
||||
* works on seekable streams)
|
||||
*/
|
||||
public function __construct(StreamInterface $stream, $limit = -1, $offset = 0)
|
||||
{
|
||||
$this->stream = $stream;
|
||||
$this->setLimit($limit);
|
||||
$this->setOffset($offset);
|
||||
}
|
||||
|
||||
public function eof()
|
||||
{
|
||||
// Always return true if the underlying stream is EOF
|
||||
if ($this->stream->eof()) {
|
||||
return \true;
|
||||
}
|
||||
// No limit and the underlying stream is not at EOF
|
||||
if (-1 == $this->limit) {
|
||||
return \false;
|
||||
}
|
||||
|
||||
return $this->stream->tell() >= $this->offset + $this->limit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size of the limited subset of data
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getSize()
|
||||
{
|
||||
if (null === ($length = $this->stream->getSize())) {
|
||||
return null;
|
||||
}
|
||||
if (-1 == $this->limit) {
|
||||
return $length - $this->offset;
|
||||
}
|
||||
|
||||
return \min($this->limit, $length - $this->offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow for a bounded seek on the read limited stream
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function seek($offset, $whence = \SEEK_SET)
|
||||
{
|
||||
if (\SEEK_SET !== $whence || $offset < 0) {
|
||||
throw new \RuntimeException(\sprintf('Cannot seek to offset %s with whence %s', $offset, $whence));
|
||||
}
|
||||
$offset += $this->offset;
|
||||
if (-1 !== $this->limit) {
|
||||
if ($offset > $this->offset + $this->limit) {
|
||||
$offset = $this->offset + $this->limit;
|
||||
}
|
||||
}
|
||||
$this->stream->seek($offset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Give a relative tell()
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function tell()
|
||||
{
|
||||
return $this->stream->tell() - $this->offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the offset to start limiting from.
|
||||
*
|
||||
* @param int $offset Offset to seek to and begin byte limiting from
|
||||
*
|
||||
* @throws \RuntimeException if the stream cannot be seeked
|
||||
*/
|
||||
public function setOffset($offset)
|
||||
{
|
||||
$current = $this->stream->tell();
|
||||
if ($current !== $offset) {
|
||||
// If the stream cannot seek to the offset position, then read to it
|
||||
if ($this->stream->isSeekable()) {
|
||||
$this->stream->seek($offset);
|
||||
} elseif ($current > $offset) {
|
||||
throw new \RuntimeException("Could not seek to stream offset {$offset}");
|
||||
} else {
|
||||
$this->stream->read($offset - $current);
|
||||
}
|
||||
}
|
||||
$this->offset = $offset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the limit of bytes that the decorator allows to be read from the
|
||||
* stream.
|
||||
*
|
||||
* @param int $limit Number of bytes to allow to be read from the stream.
|
||||
* Use -1 for no limit.
|
||||
*/
|
||||
public function setLimit($limit)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
}
|
||||
|
||||
public function read($length)
|
||||
{
|
||||
if (-1 == $this->limit) {
|
||||
return $this->stream->read($length);
|
||||
}
|
||||
// Check if the current position is less than the total allowed
|
||||
// bytes + original offset
|
||||
$remaining = $this->offset + $this->limit - $this->stream->tell();
|
||||
if ($remaining > 0) {
|
||||
// Only return the amount of requested data, ensuring that the byte
|
||||
// limit is not exceeded
|
||||
return $this->stream->read(\min($remaining, $length));
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user