facturation/install.php

13 lines
378 B
PHP

<?php
namespace Garradin;
use Garradin\Entities\Files\File;
use Garradin\Plugin\Facturation\Facture;
$db = DB::getInstance();
$db->import(dirname(__FILE__) . "/data/schema.sql");
$path = __DIR__.'/data/default_sign.png';
$png = (new File)->createAndStore('skel/plugin/facturation','sign.png', $path, null);
$plugin->registerSignal('menu.item', [Facture::class, 'menuItem']);