-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugin managers are proper plugin managers
- Loading branch information
1 parent
83da09f
commit 4b500a4
Showing
4 changed files
with
28 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder for the canonical source repository | ||
* @copyright https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/blob/master/COPYRIGHT.md | ||
* @license https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
namespace Laminas\ApiTools\Doctrine\ORM\QueryBuilder; | ||
|
||
use Laminas\Mvc\Service\AbstractPluginManagerFactory; | ||
use Interop\Container\ContainerInterface; | ||
|
||
class FilterManagerFactory extends AbstractPluginManagerFactory | ||
final class FilterManagerFactory | ||
{ | ||
const PLUGIN_MANAGER_CLASS = FilterManager::class; | ||
public function __invoke( | ||
ContainerInterface $container, | ||
$requestedName, | ||
array $options = null | ||
) { | ||
$config = $container->get('config')['api-tools-doctrine-orm-querybuilder-filter']; | ||
|
||
return new FilterManager($container, $config); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @see https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder for the canonical source repository | ||
* @copyright https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/blob/master/COPYRIGHT.md | ||
* @license https://github.com/laminas-api-tools/api-tools-doctrine-querybuilder/blob/master/LICENSE.md New BSD License | ||
*/ | ||
|
||
namespace Laminas\ApiTools\Doctrine\ORM\QueryBuilder; | ||
|
||
use Laminas\Mvc\Service\AbstractPluginManagerFactory; | ||
use Interop\Container\ContainerInterface; | ||
|
||
class OrderByManagerFactory extends AbstractPluginManagerFactory | ||
final class OrderByManagerFactory | ||
{ | ||
const PLUGIN_MANAGER_CLASS = OrderByManager::class; | ||
public function __invoke( | ||
ContainerInterface $container, | ||
$requestedName, | ||
array $options = null | ||
) { | ||
$config = $container->get('config')['api-tools-doctrine-orm-querybuilder-orderby']; | ||
|
||
return new OrderByManager($container, $config); | ||
} | ||
} |