Skip to content

Commit f2a52e1

Browse files
committed
minor #165 Narrow API marking classes as final (phansys)
This PR was merged into the 3.x branch. Discussion ---------- |Q |A | |--- |---| |Branch |3.x| |Bug fix? |no | |New feature? |no | |BC breaks? |no | |Deprecations?|no | |Tests pass? |yes| |Fixed tickets|n/a| |License |MIT| |Doc PR |n/a| Commits ------- c3bf56f Narrow API marking classes as final
2 parents a9d90e4 + c3bf56f commit f2a52e1

22 files changed

Lines changed: 64 additions & 3 deletions

Command/AutoClosingCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
/**
13+
* @final since hackzilla/ticket-bundle 3.x.
14+
*/
1215
class AutoClosingCommand extends ContainerAwareCommand
1316
{
1417
protected static $defaultName = 'ticket:autoclosing';

Command/TicketManagerCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Symfony\Component\Console\Input\InputOption;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12+
/**
13+
* @final since hackzilla/ticket-bundle 3.x.
14+
*/
1215
class TicketManagerCommand extends ContainerAwareCommand
1316
{
1417
protected static $defaultName = 'ticket:create';

Component/TicketFeatures.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Hackzilla\Bundle\TicketBundle\Model\TicketFeature\MessageAttachmentInterface;
66

7+
/**
8+
* @final since hackzilla/ticket-bundle 3.x.
9+
*/
710
class TicketFeatures
811
{
912
private $features;

Controller/TicketAttachmentController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Ticket Attachment controller.
1010
*
1111
* Download attachments
12+
*
13+
* @final since hackzilla/ticket-bundle 3.x.
1214
*/
1315
class TicketAttachmentController extends Controller
1416
{

Controller/TicketController.php

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

1616
/**
1717
* Ticket controller.
18+
*
19+
* @final since hackzilla/ticket-bundle 3.x.
1820
*/
1921
class TicketController extends Controller
2022
{

DependencyInjection/Compiler/DoctrineOrmMappingsPass.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
77
use Symfony\Component\DependencyInjection\Definition;
88

9+
/**
10+
* @final since hackzilla/ticket-bundle 3.x.
11+
*/
912
class DoctrineOrmMappingsPass extends \Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass
1013
{
1114
public function __construct($driver = null, array $namespaces = [], $managerParameters = [], $enabledParameter = false, array $aliasMap = [])

DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* This is the class that validates and merges configuration from your app/config files.
1010
*
1111
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
12+
*
13+
* @final since hackzilla/ticket-bundle 3.x.
1214
*/
1315
class Configuration implements ConfigurationInterface
1416
{

DependencyInjection/HackzillaTicketExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* This is the class that loads and manages your bundle configuration.
1212
*
1313
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
14+
*
15+
* @final since hackzilla/ticket-bundle 3.x.
1416
*/
1517
class HackzillaTicketExtension extends Extension
1618
{

Event/TicketEvent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Hackzilla\Bundle\TicketBundle\Model\TicketInterface;
66
use Symfony\Component\EventDispatcher\Event;
77

8+
/**
9+
* @final since hackzilla/ticket-bundle 3.x.
10+
*/
811
class TicketEvent extends Event
912
{
1013
protected $ticket;

EventListener/FileSubscriber.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Class FileSubscriber.
1111
*
1212
* Source: https://gist.github.com/hubgit/0cdf96c296f20017fe91#file-filesubscriber-php
13+
*
14+
* @final since hackzilla/ticket-bundle 3.x.
1315
*/
1416
class FileSubscriber implements EventSubscriberInterface
1517
{

0 commit comments

Comments
 (0)