Exemple #1
0
 public function driver($driver = null)
 {
     // If a custom driver is not registered for our page type validator, we return the default.
     if (!isset($this->customCreators[$driver])) {
         return $this->getDefaultDriver();
     }
     return parent::driver($driver);
 }
 public function driver($driver = null)
 {
     $method = 'create' . camelcase($driver) . 'Driver';
     // If a custom driver is not registered, we use unmapped
     if ($driver && !isset($this->customCreators[$driver]) && !method_exists($this, $method)) {
         return $this->createStandardDriver();
     }
     return parent::driver($driver);
 }
 public function __construct($app)
 {
     parent::__construct($app);
     $this->extend('user', function () {
         return new UserImporter();
     });
     $this->extend('group', function () {
         return new GroupImporter();
     });
 }
 public function __construct($app)
 {
     parent::__construct($app);
     $this->extend('content', function () {
         return new ContentPublisher();
     });
     $this->extend('social_links', function () {
         return new SocialLinksPublisher();
     });
 }
 public function __construct($app)
 {
     parent::__construct($app);
     $this->extend('boolean', function () {
         return new BooleanImporter();
     });
     $this->extend('select', function () {
         return new SelectImporter();
     });
     $this->extend('text', function () {
         return new TextImporter();
     });
     $this->extend('textarea', function () {
         return new TextAreaImporter();
     });
     $this->extend('image_file', function () {
         return new ImageFileImporter();
     });
     $this->extend('topics', function () {
         return new TopicsImporter();
     });
     $this->extend('rating', function () {
         return new RatingImporter();
     });
     $this->extend('number', function () {
         return new NumberImporter();
     });
     $this->extend('social_links', function () {
         return new SocialLinksImporter();
     });
     $this->extend('date_time', function () {
         return new DateTimeImporter();
     });
     $this->extend('address', function () {
         return new AddressImporter();
     });
 }
Exemple #6
0
 public function __construct(Application $application)
 {
     parent::__construct($application);
 }
 public function __construct($app)
 {
     parent::__construct($app);
     $this->driver('attribute');
     $this->driver('block_type');
 }