Skip to content

Commit 3ccd96c

Browse files
committed
make internal classes final and mark other classes that will be final in 2.0
1 parent daa809a commit 3ccd96c

18 files changed

+30
-6
lines changed

src/ClientFactory/AutoDiscoveryFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Use auto discovery to find a HTTP client.
1111
*
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @final
1315
*/
1416
class AutoDiscoveryFactory implements ClientFactory
1517
{

src/ClientFactory/BuzzFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
14+
*
15+
* @final
1416
*/
1517
class BuzzFactory implements ClientFactory
1618
{

src/ClientFactory/CurlFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @final
1315
*/
1416
class CurlFactory implements ClientFactory
1517
{

src/ClientFactory/Guzzle5Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
13+
*
14+
* @final
1315
*/
1416
class Guzzle5Factory implements ClientFactory
1517
{

src/ClientFactory/Guzzle6Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
11+
*
12+
* @final
1113
*/
1214
class Guzzle6Factory implements ClientFactory
1315
{

src/ClientFactory/ReactFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
12+
*
13+
* @final
1214
*/
1315
class ReactFactory implements ClientFactory
1416
{

src/ClientFactory/SocketFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
12+
*
13+
* @final
1214
*/
1315
class SocketFactory implements ClientFactory
1416
{

src/Collector/Collector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @internal
2121
*/
22-
class Collector extends DataCollector
22+
final class Collector extends DataCollector
2323
{
2424
/**
2525
* @var Stack|null

src/Collector/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal
2323
*/
24-
class Formatter implements MessageFormatter
24+
final class Formatter implements MessageFormatter
2525
{
2626
/**
2727
* @var MessageFormatter

src/Collector/ProfileClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @internal
2525
*/
26-
class ProfileClient implements HttpClient, HttpAsyncClient
26+
final class ProfileClient implements HttpClient, HttpAsyncClient
2727
{
2828
use VersionBridgeClient;
2929

src/Collector/ProfileClientFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*/
21-
class ProfileClientFactory implements ClientFactory
21+
final class ProfileClientFactory implements ClientFactory
2222
{
2323
/**
2424
* @var ClientFactory|callable

src/Collector/ProfilePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @internal
1919
*/
20-
class ProfilePlugin implements Plugin
20+
final class ProfilePlugin implements Plugin
2121
{
2222
use Plugin\VersionBridgePlugin;
2323

src/Collector/StackPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @internal
1919
*/
20-
class StackPlugin implements Plugin
20+
final class StackPlugin implements Plugin
2121
{
2222
use Plugin\VersionBridgePlugin;
2323

src/Collector/Twig/HttpMessageMarkupExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
16+
*
17+
* @final
1618
*/
1719
class HttpMessageMarkupExtension extends AbstractExtension
1820
{

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*
3232
* @author David Buchmann <mail@davidbu.ch>
3333
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
34+
*
35+
* @final
3436
*/
3537
class Configuration implements ConfigurationInterface
3638
{

src/DependencyInjection/HttplugExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
/**
3939
* @author David Buchmann <mail@davidbu.ch>
4040
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
41+
*
42+
* @final
4143
*/
4244
class HttplugExtension extends Extension
4345
{

src/Discovery/ConfiguredClientsStrategy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* we can use the web debug toolbar for clients found with the discovery.
1515
*
1616
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
17+
*
18+
* @final
1719
*/
1820
class ConfiguredClientsStrategy implements DiscoveryStrategy
1921
{

src/HttplugBundle.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
/**
1010
* @author David Buchmann <mail@davidbu.ch>
1111
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
12+
*
13+
* @final
1214
*/
1315
class HttplugBundle extends Bundle
1416
{

0 commit comments

Comments
 (0)