Файл: concrete5.7.5.6/concrete/src/Form/FormServiceProvider.php
Строк: 27
<?php
namespace ConcreteCoreForm;
use ConcreteCoreFoundationServiceProvider as ServiceProvider;
class FormServiceProvider extends ServiceProvider {
public function register() {
$singletons = array(
'helper/form' => 'ConcreteCoreFormServiceForm',
'helper/form/attribute' => 'ConcreteCoreFormServiceWidgetAttribute',
'helper/form/color' => 'ConcreteCoreFormServiceWidgetColor',
'helper/form/font' => 'ConcreteCoreFormServiceWidgetTypography',
'helper/form/typography' => 'ConcreteCoreFormServiceWidgetTypography',
'helper/form/date_time' => 'ConcreteCoreFormServiceWidgetDateTime',
'helper/form/page_selector' => 'ConcreteCoreFormServiceWidgetPageSelector',
'helper/form/rating' => 'ConcreteCoreFormServiceWidgetRating',
'helper/form/user_selector' => 'ConcreteCoreFormServiceWidgetUserSelector'
);
foreach($singletons as $key => $value) {
$this->app->singleton($key, $value);
}
}
}