domatskiy / laravel-exchange1c
来自1c的加载器 - CommerceML
v0.9.0
2017-11-16 10:23 UTC
Requires
- php: >=5.6.4
- barryvdh/reflection-docblock: ^2.0.4
- illuminate/console: ^5.0,<5.6
- illuminate/filesystem: ^5.0,<5.6
- illuminate/support: ^5.0,<5.6
- laravel/framework: ^5.4
- symfony/class-loader: ^2.3|^3.0
Requires (Dev)
- doctrine/dbal: ~2.3
- illuminate/config: ^5.0,<5.6
- phpunit/phpunit: ^5.4.0
This package is auto-updated.
Last update: 2024-09-18 03:29:35 UTC
README
composer require domatskiy/laravel-exchange1c
将 Exchange1CServiceProvider 添加到 /config/app.php 文件的 providers 部分
Domatskiy\Exchange1C\Exchange1CServiceProvider::class
发布
php artisan vendor:publish --provider="Domatskiy\Exchange1C\Exchange1CServiceProvider"
事件
'Domatskiy\Exchange1C\Events\ImportComplate' => [ 'App\Listeners\ImportComplate', ],
ImportComplate 属性
[type] => catalog
[dir] => /var/www/.../storage/app/1c_exchange
[file] => import0_1.xml
示例:class App\Listeners\ImportComplate
use Illuminate\Support\Facades\Event; class ImportComplate { /** * Handle the event. * * @param Event $event * @return void */ public function handle(Event $event) { \Log::info('event: '. print_r($event, true)); } }