Skip to content

Commit

Permalink
Merge pull request #40 from adespresso/add-feature-interface
Browse files Browse the repository at this point in the history
Add FeatureInterface
  • Loading branch information
EmanueleMinotto authored May 4, 2018
2 parents a83f63e + 1114170 commit bfa3d08
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Service/Feature.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* @author Carlo Forghieri <[email protected]>
*/
class Feature
class Feature implements FeatureInterface
{
/**
* @var FeatureManager
Expand Down
19 changes: 19 additions & 0 deletions Service/FeatureInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Ae\FeatureBundle\Service;

/**
* @author Simone Di Maulo <[email protected]>
*/
interface FeatureInterface
{
/**
* Check if a feature (defined by name/parent) is granted to the logged user.
*
* @param string $name
* @param string $parent
*
* @return bool
*/
public function isGranted($name, $parent);
}

0 comments on commit bfa3d08

Please sign in to comment.