Skip to content

Commit

Permalink
Change documentation examples to show use parent
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Aug 4, 2021
1 parent f758410 commit 8ed3e97
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions lib/Workflow/Action.pm
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ This documentation describes version 1.56 of this package
package MyApp::Action::CreateUser;
use base qw( Workflow::Action );
use parent qw( Workflow::Action );
use Workflow::Exception qw( workflow_error );
use Syntax::Keyword::Try;
Expand Down Expand Up @@ -375,7 +375,7 @@ an example on how you easily do this by overriding new():
use warnings;
use strict;
use base qw( Workflow::Action );
use parent qw( Workflow::Action );
use Workflow::Exception qw( workflow_error );
# extra action class properties
Expand Down Expand Up @@ -406,7 +406,7 @@ an example on how you easily do this by overriding new():
use warnings;
use strict;
use base qw( your::base::action::class );
use parent qw( your::base::action::class );
use Workflow::Exception qw( workflow_error );
sub execute {
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ This documentation describes version 1.56 of this package
=head1 SYNOPSIS
package My::App::Foo;
use base qw( Workflow::Base );
use parent qw( Workflow::Base );
=head1 DESCRIPTION
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Condition.pm
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ This documentation describes version 1.56 of this package
package MyApp::Condition::IsAdminUser;
use strict;
use base qw( Workflow::Condition );
use parent qw( Workflow::Condition );
use Workflow::Exception qw( configuration_error );
__PACKAGE__->mk_accessors( 'admin_group_id' );
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ would do something like:
use strict;
# Requirement 1: Subclass Workflow::Config
use base qw( Workflow::Config );
use parent qw( Workflow::Config );
# Requirement 2: Implement required methods
sub parse { ... }
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Factory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ implementation is typical Perl subclassing:
package My::Cool::Factory;
use strict;
use base qw( Workflow::Factory );
use parent qw( Workflow::Factory );
sub some_cool_method {
my ( $self ) = @_;
Expand Down
4 changes: 2 additions & 2 deletions lib/Workflow/InputField.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ extra properties. Just derive your custom fields class like so:
use warnings;
use strict;
use base qw( Workflow::InputField );
use parent qw( Workflow::InputField );
use Workflow::Exception qw( workflow_error );
# extra action class properties
Expand Down Expand Up @@ -300,7 +300,7 @@ and 'value' keys.
B<class> (optional)
You may specify a custom InputField class. It should C<use base qw(
You may specify a custom InputField class. It should C<use parent qw(
Workflow::Action );> and probably override the new() method which
should call SUPER::new($params). See L</"new( \%params )"> above for an
example.
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Persister/DBI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ example.)
package Workflow::Persister::DBI::OpenInteractHandle;
use strict;
use base qw( Workflow::Persister::DBI );
use parent qw( Workflow::Persister::DBI );
use OpenInteract2::Context qw( CTX );
my @FIELDS = qw( datasource_name );
Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/Validator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This documentation describes version 1.56 of this package
package MyApp::Validator::Date;
use strict;
use base qw( Workflow::Validator );
use parent qw( Workflow::Validator );
use DateTime::Format::Strptime;
use Workflow::Exception qw( configuration_error );
Expand Down

0 comments on commit 8ed3e97

Please sign in to comment.