Skip to content

Commit

Permalink
core-2275 deprecate getName()
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Jan 25, 2018
1 parent 47cfff8 commit ed56ded
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Spryker/Zed/Acl/Communication/Form/GroupForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ protected function addRolesField(FormBuilderInterface $builder, array $choices)
return $this;
}

/**
* @deprecated Use `getBlockPrefix()` instead.
*
* @return string
*/
public function getName()
{
return $this->getBlockPrefix();
}

/**
* @return string
*/
Expand Down
10 changes: 10 additions & 0 deletions src/Spryker/Zed/Acl/Communication/Form/RoleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,14 @@ public function getBlockPrefix()
{
return 'role';
}

/**
* @deprecated Use `getBlockPrefix()` instead.
*
* @return string
*/
public function getName()
{
return $this->getBlockPrefix();
}
}
10 changes: 10 additions & 0 deletions src/Spryker/Zed/Acl/Communication/Form/RuleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,14 @@ public function getBlockPrefix()
{
return 'ruleset';
}

/**
* @deprecated Use `getBlockPrefix()` instead.
*
* @return string
*/
public function getName()
{
return $this->getBlockPrefix();
}
}

0 comments on commit ed56ded

Please sign in to comment.