1 | <?php namespace Anomaly\Streams\Platform; |
||
55 | class StreamsServiceProvider extends ServiceProvider |
||
56 | { |
||
57 | |||
58 | use DispatchesJobs; |
||
59 | |||
60 | /** |
||
61 | * The scheduled commands. |
||
62 | * |
||
63 | * @var array |
||
64 | */ |
||
65 | protected $schedule = []; |
||
66 | |||
67 | /** |
||
68 | * The providers to register. |
||
69 | * |
||
70 | * @var array |
||
71 | */ |
||
72 | protected $providers = [ |
||
73 | 'Anomaly\Streams\Platform\StreamsConsoleProvider', |
||
74 | 'Anomaly\Streams\Platform\StreamsEventProvider', |
||
75 | ]; |
||
76 | |||
77 | /** |
||
78 | * The plugins to register. |
||
79 | * |
||
80 | * @var array |
||
81 | */ |
||
82 | protected $plugins = [ |
||
83 | 'TwigBridge\Extension\Laravel\Form', |
||
84 | 'TwigBridge\Extension\Laravel\Html', |
||
85 | 'Anomaly\Streams\Platform\StreamsPlugin', |
||
86 | 'Phive\Twig\Extensions\Deferred\DeferredExtension', |
||
87 | ]; |
||
88 | |||
89 | /** |
||
90 | * The commands to register. |
||
91 | * |
||
92 | * @var array |
||
93 | */ |
||
94 | protected $commands = [ |
||
95 | 'Anomaly\Streams\Platform\Asset\Console\Clear', |
||
96 | 'Anomaly\Streams\Platform\Stream\Console\Make', |
||
97 | 'Anomaly\Streams\Platform\Stream\Console\Compile', |
||
98 | 'Anomaly\Streams\Platform\Stream\Console\Refresh', |
||
99 | 'Anomaly\Streams\Platform\Stream\Console\Cleanup', |
||
100 | 'Anomaly\Streams\Platform\Stream\Console\Destroy', |
||
101 | 'Anomaly\Streams\Platform\Addon\Console\MakeAddon', |
||
102 | 'Anomaly\Streams\Platform\Addon\Console\AddonInstall', |
||
103 | 'Anomaly\Streams\Platform\Addon\Console\AddonUninstall', |
||
104 | 'Anomaly\Streams\Platform\Addon\Console\AddonReinstall', |
||
105 | 'Anomaly\Streams\Platform\Installer\Console\Install', |
||
106 | 'Anomaly\Streams\Platform\Application\Console\EnvSet', |
||
107 | 'Anomaly\Streams\Platform\Addon\Console\AddonPublish', |
||
108 | 'Anomaly\Streams\Platform\Addon\Module\Console\Install', |
||
109 | 'Anomaly\Streams\Platform\Addon\Module\Console\Uninstall', |
||
110 | 'Anomaly\Streams\Platform\Addon\Module\Console\Reinstall', |
||
111 | 'Anomaly\Streams\Platform\Application\Console\AppPublish', |
||
112 | 'Anomaly\Streams\Platform\Addon\Extension\Console\Install', |
||
113 | 'Anomaly\Streams\Platform\Addon\Extension\Console\Uninstall', |
||
114 | 'Anomaly\Streams\Platform\Addon\Extension\Console\Reinstall', |
||
115 | 'Anomaly\Streams\Platform\Application\Console\StreamsPublish', |
||
116 | ]; |
||
117 | |||
118 | /** |
||
119 | * The class bindings. |
||
120 | * |
||
121 | * @var array |
||
122 | */ |
||
123 | protected $bindings = [ |
||
124 | 'Illuminate\Contracts\Debug\ExceptionHandler' => 'Anomaly\Streams\Platform\Exception\ExceptionHandler', |
||
125 | 'Illuminate\Routing\UrlGenerator' => 'Anomaly\Streams\Platform\Routing\UrlGenerator', |
||
126 | 'Illuminate\Contracts\Routing\UrlGenerator' => 'Anomaly\Streams\Platform\Routing\UrlGenerator', |
||
127 | 'GrahamCampbell\Exceptions\Displayers\ViewDisplayer' => 'Anomaly\Streams\Platform\Exception\Displayer\ViewDisplayer', |
||
128 | 'Anomaly\Streams\Platform\Entry\EntryModel' => 'Anomaly\Streams\Platform\Entry\EntryModel', |
||
129 | 'Anomaly\Streams\Platform\Entry\Contract\EntryRepositoryInterface' => 'Anomaly\Streams\Platform\Entry\EntryRepository', |
||
130 | 'Anomaly\Streams\Platform\Field\FieldModel' => 'Anomaly\Streams\Platform\Field\FieldModel', |
||
131 | 'Anomaly\Streams\Platform\Field\Contract\FieldRepositoryInterface' => 'Anomaly\Streams\Platform\Field\FieldRepository', |
||
132 | 'Anomaly\Streams\Platform\Stream\StreamModel' => 'Anomaly\Streams\Platform\Stream\StreamModel', |
||
133 | 'Anomaly\Streams\Platform\Stream\Contract\StreamRepositoryInterface' => 'Anomaly\Streams\Platform\Stream\StreamRepository', |
||
134 | 'Anomaly\Streams\Platform\Model\Contract\EloquentRepositoryInterface' => 'Anomaly\Streams\Platform\Model\EloquentRepository', |
||
135 | 'Anomaly\Streams\Platform\Assignment\AssignmentModel' => 'Anomaly\Streams\Platform\Assignment\AssignmentModel', |
||
136 | 'Anomaly\Streams\Platform\Assignment\Contract\AssignmentRepositoryInterface' => 'Anomaly\Streams\Platform\Assignment\AssignmentRepository', |
||
137 | 'Anomaly\Streams\Platform\Addon\Module\ModuleModel' => 'Anomaly\Streams\Platform\Addon\Module\ModuleModel', |
||
138 | 'Anomaly\Streams\Platform\Addon\Module\Contract\ModuleRepositoryInterface' => 'Anomaly\Streams\Platform\Addon\Module\ModuleRepository', |
||
139 | 'Anomaly\Streams\Platform\Addon\Extension\ExtensionModel' => 'Anomaly\Streams\Platform\Addon\Extension\ExtensionModel', |
||
140 | 'Anomaly\Streams\Platform\Addon\Extension\Contract\ExtensionRepositoryInterface' => 'Anomaly\Streams\Platform\Addon\Extension\ExtensionRepository', |
||
141 | 'addon.collection' => 'Anomaly\Streams\Platform\Addon\AddonCollection', |
||
142 | 'module.collection' => 'Anomaly\Streams\Platform\Addon\Module\ModuleCollection', |
||
143 | 'extension.collection' => 'Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection', |
||
144 | 'field_type.collection' => 'Anomaly\Streams\Platform\Addon\FieldType\FieldTypeCollection', |
||
145 | 'plugin.collection' => 'Anomaly\Streams\Platform\Addon\Plugin\PluginCollection', |
||
146 | 'theme.collection' => 'Anomaly\Streams\Platform\Addon\Theme\ThemeCollection', |
||
147 | ]; |
||
148 | |||
149 | /** |
||
150 | * The singleton bindings. |
||
151 | * |
||
152 | * @var array |
||
153 | */ |
||
154 | protected $singletons = [ |
||
155 | 'Illuminate\Contracts\Routing\UrlGenerator' => 'Anomaly\Streams\Platform\Routing\UrlGenerator', |
||
156 | 'Intervention\Image\ImageManager' => 'image', |
||
157 | 'League\Flysystem\MountManager' => 'League\Flysystem\MountManager', |
||
158 | 'Illuminate\Console\Scheduling\Schedule' => 'Illuminate\Console\Scheduling\Schedule', |
||
159 | 'Anomaly\Streams\Platform\Application\Application' => 'Anomaly\Streams\Platform\Application\Application', |
||
160 | 'Anomaly\Streams\Platform\Addon\AddonLoader' => 'Anomaly\Streams\Platform\Addon\AddonLoader', |
||
161 | 'Anomaly\Streams\Platform\Addon\AddonBinder' => 'Anomaly\Streams\Platform\Addon\AddonBinder', |
||
162 | 'Anomaly\Streams\Platform\Addon\AddonManager' => 'Anomaly\Streams\Platform\Addon\AddonManager', |
||
163 | 'Anomaly\Streams\Platform\Addon\AddonProvider' => 'Anomaly\Streams\Platform\Addon\AddonProvider', |
||
164 | 'Anomaly\Streams\Platform\Addon\AddonCollection' => 'Anomaly\Streams\Platform\Addon\AddonCollection', |
||
165 | 'Anomaly\Streams\Platform\Message\MessageBag' => 'Anomaly\Streams\Platform\Message\MessageBag', |
||
166 | 'Anomaly\Streams\Platform\Stream\StreamStore' => 'Anomaly\Streams\Platform\Stream\StreamStore', |
||
167 | 'Anomaly\Streams\Platform\Support\Configurator' => 'Anomaly\Streams\Platform\Support\Configurator', |
||
168 | 'Anomaly\Streams\Platform\Support\Authorizer' => 'Anomaly\Streams\Platform\Support\Authorizer', |
||
169 | 'Anomaly\Streams\Platform\Support\Evaluator' => 'Anomaly\Streams\Platform\Support\Evaluator', |
||
170 | 'Anomaly\Streams\Platform\Support\Currency' => 'Anomaly\Streams\Platform\Support\Currency', |
||
171 | 'Anomaly\Streams\Platform\Support\Parser' => 'Anomaly\Streams\Platform\Support\Parser', |
||
172 | 'Anomaly\Streams\Platform\Support\Hydrator' => 'Anomaly\Streams\Platform\Support\Hydrator', |
||
173 | 'Anomaly\Streams\Platform\Support\Resolver' => 'Anomaly\Streams\Platform\Support\Resolver', |
||
174 | 'Anomaly\Streams\Platform\Support\Translator' => 'Anomaly\Streams\Platform\Support\Translator', |
||
175 | 'Anomaly\Streams\Platform\Asset\Asset' => 'Anomaly\Streams\Platform\Asset\Asset', |
||
176 | 'Anomaly\Streams\Platform\Asset\AssetPaths' => 'Anomaly\Streams\Platform\Asset\AssetPaths', |
||
177 | 'Anomaly\Streams\Platform\Asset\AssetParser' => 'Anomaly\Streams\Platform\Asset\AssetParser', |
||
178 | 'Anomaly\Streams\Platform\Image\Image' => 'Anomaly\Streams\Platform\Image\Image', |
||
179 | 'Anomaly\Streams\Platform\Image\ImagePaths' => 'Anomaly\Streams\Platform\Image\ImagePaths', |
||
180 | 'Anomaly\Streams\Platform\Image\ImageMacros' => 'Anomaly\Streams\Platform\Image\ImageMacros', |
||
181 | 'Anomaly\Streams\Platform\Ui\Table\Component\View\ViewRegistry' => 'Anomaly\Streams\Platform\Ui\Table\Component\View\ViewRegistry', |
||
182 | 'Anomaly\Streams\Platform\Ui\Table\Component\Filter\FilterRegistry' => 'Anomaly\Streams\Platform\Ui\Table\Component\Filter\FilterRegistry', |
||
183 | 'Anomaly\Streams\Platform\Ui\Breadcrumb\BreadcrumbCollection' => 'Anomaly\Streams\Platform\Ui\Breadcrumb\BreadcrumbCollection', |
||
184 | 'Anomaly\Streams\Platform\Ui\Icon\IconRegistry' => 'Anomaly\Streams\Platform\Ui\Icon\IconRegistry', |
||
185 | 'Anomaly\Streams\Platform\Ui\Button\ButtonRegistry' => 'Anomaly\Streams\Platform\Ui\Button\ButtonRegistry', |
||
186 | 'Anomaly\Streams\Platform\Ui\ControlPanel\Component\Section\SectionCollection' => 'Anomaly\Streams\Platform\Ui\ControlPanel\Component\Section\SectionCollection', |
||
187 | 'Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationCollection' => 'Anomaly\Streams\Platform\Ui\ControlPanel\Component\Navigation\NavigationCollection', |
||
188 | 'Anomaly\Streams\Platform\Http\Middleware\MiddlewareCollection' => 'Anomaly\Streams\Platform\Http\Middleware\MiddlewareCollection', |
||
189 | 'Anomaly\Streams\Platform\Stream\StreamModel' => 'Anomaly\Streams\Platform\Stream\StreamModel', |
||
190 | 'Anomaly\Streams\Platform\Addon\Module\ModuleCollection' => 'Anomaly\Streams\Platform\Addon\Module\ModuleCollection', |
||
191 | 'Anomaly\Streams\Platform\Addon\Module\Listener\PutModuleInCollection' => 'Anomaly\Streams\Platform\Addon\Module\Listener\PutModuleInCollection', |
||
192 | 'Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection' => 'Anomaly\Streams\Platform\Addon\Extension\ExtensionCollection', |
||
193 | 'Anomaly\Streams\Platform\Addon\Extension\Listener\PutExtensionInCollection' => 'Anomaly\Streams\Platform\Addon\Extension\Listener\PutExtensionInCollection', |
||
194 | 'Anomaly\Streams\Platform\Addon\FieldType\FieldTypeModifier' => 'Anomaly\Streams\Platform\Addon\FieldType\FieldTypeModifier', |
||
195 | 'Anomaly\Streams\Platform\Addon\FieldType\FieldTypeCollection' => 'Anomaly\Streams\Platform\Addon\FieldType\FieldTypeCollection', |
||
196 | 'Anomaly\Streams\Platform\Addon\FieldType\Listener\PutFieldTypeInCollection' => 'Anomaly\Streams\Platform\Addon\FieldType\Listener\PutFieldTypeInCollection', |
||
197 | 'Anomaly\Streams\Platform\Addon\Plugin\PluginCollection' => 'Anomaly\Streams\Platform\Addon\Plugin\PluginCollection', |
||
198 | 'Anomaly\Streams\Platform\Addon\Plugin\Listener\PutPluginInCollection' => 'Anomaly\Streams\Platform\Addon\Plugin\Listener\PutPluginInCollection', |
||
199 | 'Anomaly\Streams\Platform\Addon\Theme\ThemeCollection' => 'Anomaly\Streams\Platform\Addon\Theme\ThemeCollection', |
||
200 | 'Anomaly\Streams\Platform\Addon\Theme\Listener\PutThemeInCollection' => 'Anomaly\Streams\Platform\Addon\Theme\Listener\PutThemeInCollection', |
||
201 | 'Anomaly\Streams\Platform\View\ViewComposer' => 'Anomaly\Streams\Platform\View\ViewComposer', |
||
202 | 'Anomaly\Streams\Platform\View\ViewTemplate' => 'Anomaly\Streams\Platform\View\ViewTemplate', |
||
203 | 'Anomaly\Streams\Platform\View\ViewOverrides' => 'Anomaly\Streams\Platform\View\ViewOverrides', |
||
204 | 'Anomaly\Streams\Platform\View\ViewMobileOverrides' => 'Anomaly\Streams\Platform\View\ViewMobileOverrides', |
||
205 | 'Anomaly\Streams\Platform\View\Listener\LoadTemplateData' => 'Anomaly\Streams\Platform\View\Listener\LoadTemplateData', |
||
206 | 'Anomaly\Streams\Platform\View\Listener\DecorateData' => 'Anomaly\Streams\Platform\View\Listener\DecorateData', |
||
207 | 'Anomaly\Streams\Platform\Support\Template' => 'Anomaly\Streams\Platform\Support\Template', |
||
208 | 'Anomaly\Streams\Platform\Support\Purifier' => 'Anomaly\Streams\Platform\Support\Purifier', |
||
209 | 'Anomaly\Streams\Platform\Assignment\AssignmentRouter' => 'Anomaly\Streams\Platform\Assignment\AssignmentRouter', |
||
210 | 'Anomaly\Streams\Platform\Field\FieldRouter' => 'Anomaly\Streams\Platform\Field\FieldRouter', |
||
211 | ]; |
||
212 | |||
213 | /** |
||
214 | * Boot the service provider. |
||
215 | */ |
||
216 | public function boot(Dispatcher $events) |
||
295 | |||
296 | /** |
||
297 | * Register the service provider. |
||
298 | * |
||
299 | * @return void |
||
300 | */ |
||
301 | public function register() |
||
410 | } |
||
411 |
It seems like you are assigning to a variable which was imported through a
use
statement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope