| 1 | <?php |
||
| 25 | class PluginRepository extends AbstractRepository |
||
| 26 | { |
||
| 27 | 428 | public function __construct(RegistryInterface $registry) |
|
| 31 | |||
| 32 | public function findAllEnabled() |
||
| 33 | { |
||
| 34 | return $this->findBy(['enabled' => '1']); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
|
|
|||
| 38 | * @param $code プラグインコード |
||
| 39 | * |
||
| 40 | * @return Plugin |
||
| 41 | */ |
||
| 42 | public function findByCode($code) |
||
| 46 | } |
||
| 47 |