Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stateful
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grifart libs
stateful
Commits
45fafe15
Commit
45fafe15
authored
1 year ago
by
Daniel Kurowski
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecated StatefulImplementation scaffolding capability
parent
2c763ba7
Loading
Loading
1 merge request
!30
Draft: 0.8 major release
Pipeline
#50572
passed
1 year ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Bridge/Scaffolder/StatefulImplementation.php
+0
-29
0 additions, 29 deletions
src/Bridge/Scaffolder/StatefulImplementation.php
src/Bridge/Scaffolder/functions.php
+0
-5
0 additions, 5 deletions
src/Bridge/Scaffolder/functions.php
with
0 additions
and
34 deletions
src/Bridge/Scaffolder/StatefulImplementation.php
deleted
100644 → 0
+
0
−
29
View file @
2c763ba7
<?php
declare
(
strict_types
=
1
);
namespace
Grifart\Stateful\Bridge\Scaffolder
;
use
Grifart\ClassScaffolder\Capabilities\Capability
;
use
Grifart\ClassScaffolder\ClassInNamespace
;
use
Grifart\ClassScaffolder\Definition\ClassDefinition
;
/** @deprecated use {@see ImplementedStateful} instead */
final
class
StatefulImplementation
implements
Capability
{
private
ImplementedStateful
$replacement
;
public
function
__construct
()
{
$this
->
replacement
=
new
ImplementedStateful
();
}
public
function
applyTo
(
ClassDefinition
$definition
,
ClassInNamespace
$draft
,
?ClassInNamespace
$current
,
):
void
{
$this
->
replacement
->
applyTo
(
$definition
,
$draft
,
$current
);
}
}
This diff is collapsed.
Click to expand it.
src/Bridge/Scaffolder/functions.php
+
0
−
5
View file @
45fafe15
...
...
@@ -10,8 +10,3 @@ function implementedStateful(): ImplementedStateful {
function
implementedStatefulAndInterface
():
ImplementedStatefulAndInterface
{
return
new
ImplementedStatefulAndInterface
();
}
/** @deprecated */
function
statefulImplementation
():
StatefulImplementation
{
return
new
StatefulImplementation
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment