1 | <?php |
||
56 | class Module extends AbstractModule |
||
57 | { |
||
58 | /** |
||
59 | * Module name |
||
60 | * |
||
61 | * @var string |
||
62 | */ |
||
63 | const NAME = 'object'; |
||
64 | |||
65 | /******************************************************************************* |
||
66 | * PUBLIC METHODS |
||
67 | *******************************************************************************/ |
||
68 | |||
69 | /** |
||
70 | * Configure the dependency injection container |
||
71 | * |
||
72 | * @param DependencyInjectionContainerInterface $diContainer Dependency injection container |
||
73 | * @return void |
||
74 | */ |
||
75 | 1 | public function configureDependencyInjection(DependencyInjectionContainerInterface $diContainer) |
|
76 | { |
||
77 | 1 | parent::configureDependencyInjection($diContainer); |
|
78 | |||
79 | // Configure the repository service |
||
80 | 1 | $diContainer->register(Service::class, [ |
|
|
|||
81 | 1 | 'shared' => true, |
|
82 | 'substitutions' => [ |
||
83 | AutoConnectorInterface::class => [ |
||
84 | 1 | 'instance' => AutoConnector::class, |
|
85 | 1 | ], |
|
86 | AdapterStrategyFactoryInterface::class => [ |
||
87 | 1 | 'instance' => AdapterStrategyFactory::class, |
|
88 | 1 | ], |
|
89 | ManagerInterface::class => [ |
||
90 | 1 | 'instance' => Manager::class, |
|
91 | 1 | ], |
|
92 | ] |
||
93 | 1 | ]); |
|
94 | 1 | } |
|
95 | |||
96 | /** |
||
97 | * Test whether a URL is absolute and doesn't have query parameters and / or a fragment |
||
98 | * |
||
99 | * @param string $url URL |
||
100 | * @return boolean If the URL is absolut and has neither query parameters or a fragment |
||
101 | * @throws \RuntimeException If the URL is not absolute / valid |
||
102 | * @throws \RuntimeException If the URL has query parameters |
||
103 | * @throws \RuntimeException If the URL has a fragment |
||
104 | */ |
||
105 | 20 | public static function isAbsoluteBareUrl($url) |
|
122 | |||
123 | /******************************************************************************* |
||
124 | * PRIVATE METHODS |
||
125 | *******************************************************************************/ |
||
126 | |||
127 | /** |
||
128 | * Validate the environment |
||
129 | * |
||
130 | * @param Dotenv $environment Environment |
||
131 | */ |
||
132 | 1 | protected static function validateEnvironment(Dotenv $environment) |
|
148 | } |
||
149 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.