Skip to content

Commit e786dc3

Browse files
committed
Add bc-layer
1 parent a8c3854 commit e786dc3

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Sylius package.
5+
*
6+
* (c) Sylius Sp. z o.o.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace Sylius\Component\Resource\StateMachine;
15+
16+
class_exists(\Sylius\Resource\StateMachine\StateMachine::class);
17+
18+
if (false) {
19+
final class StateMachine extends \Sylius\Resource\StateMachine\StateMachine
20+
{
21+
}
22+
}
23+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Sylius package.
5+
*
6+
* (c) Sylius Sp. z o.o.
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
declare(strict_types=1);
13+
14+
namespace Sylius\Component\Resource\StateMachine;
15+
16+
interface_exists(\Sylius\Resource\StateMachine\StateMachineInterface::class);
17+
18+
if (false) {
19+
interface StateMachineInterface extends \Sylius\Resource\StateMachine\StateMachineInterface
20+
{
21+
}
22+
}

src/Component/src/StateMachine/StateMachine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ public function getTransitionToState(string $toState): ?string
4141
return null;
4242
}
4343
}
44+
45+
class_alias(StateMachine::class, \Sylius\Component\Resource\StateMachine\StateMachine::class);

src/Component/src/StateMachine/StateMachineInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ public function getTransitionFromState(string $fromState): ?string;
2929
*/
3030
public function getTransitionToState(string $toState): ?string;
3131
}
32+
33+
class_alias(StateMachineInterface::class, \Sylius\Component\Resource\StateMachine\StateMachineInterface::class);

0 commit comments

Comments
 (0)