mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Introduzione moduli sperimentali come pacchetti Laravel
This commit is contained in:
parent
3f46f85751
commit
bb5151329e
@ -13,6 +13,9 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
if ($this->app->environment('local')) {
|
||||||
|
$this->app->register('JeroenG\Packager\PackagerServiceProvider');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
"barryvdh/laravel-debugbar": "^3.5",
|
"barryvdh/laravel-debugbar": "^3.5",
|
||||||
"danielstjules/stringy": "^3.1",
|
"danielstjules/stringy": "^3.1",
|
||||||
"davidepastore/codice-fiscale": "^0.6.0",
|
"davidepastore/codice-fiscale": "^0.6.0",
|
||||||
|
"devcode-it/aggiornamenti": "@dev",
|
||||||
|
"devcode-it/causali-trasporto": "@dev",
|
||||||
"ezyang/htmlpurifier": "^4.8",
|
"ezyang/htmlpurifier": "^4.8",
|
||||||
"fideloper/proxy": "^4.4",
|
"fideloper/proxy": "^4.4",
|
||||||
"filp/whoops": "^2.1",
|
"filp/whoops": "^2.1",
|
||||||
@ -58,6 +60,7 @@
|
|||||||
"facade/ignition": "^2.5",
|
"facade/ignition": "^2.5",
|
||||||
"fakerphp/faker": "^1.9.1",
|
"fakerphp/faker": "^1.9.1",
|
||||||
"friendsofphp/php-cs-fixer": "^3.0",
|
"friendsofphp/php-cs-fixer": "^3.0",
|
||||||
|
"jeroen-g/laravel-packager": "^2.5",
|
||||||
"laravel/homestead": "^12.2",
|
"laravel/homestead": "^12.2",
|
||||||
"mockery/mockery": "^1.4.2",
|
"mockery/mockery": "^1.4.2",
|
||||||
"nunomaduro/collision": "^5.0",
|
"nunomaduro/collision": "^5.0",
|
||||||
@ -68,11 +71,6 @@
|
|||||||
"preferred-install": "dist",
|
"preferred-install": "dist",
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"extra": {
|
|
||||||
"laravel": {
|
|
||||||
"dont-discover": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"": "legacy/src/",
|
"": "legacy/src/",
|
||||||
@ -149,5 +147,28 @@
|
|||||||
"post-create-project-cmd": [
|
"post-create-project-cmd": [
|
||||||
"@php artisan key:generate --ansi"
|
"@php artisan key:generate --ansi"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"dont-discover": [
|
||||||
|
"jeroen-g/laravel-packager"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"repositories": {
|
||||||
|
"devcode-it/aggiornamenti": {
|
||||||
|
"type": "path",
|
||||||
|
"url": "./packages/devcode-it/aggiornamenti",
|
||||||
|
"options": {
|
||||||
|
"symlink": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"devcode-it/causali-trasporto": {
|
||||||
|
"type": "path",
|
||||||
|
"url": "./packages/devcode-it/causali-trasporto",
|
||||||
|
"options": {
|
||||||
|
"symlink": true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
'name' => 'Aggiornamenti'
|
|
||||||
];
|
|
@ -1,21 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Database\Seeders;
|
|
||||||
|
|
||||||
use Illuminate\Database\Seeder;
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
|
|
||||||
class AggiornamentiDatabaseSeeder extends Seeder
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function run()
|
|
||||||
{
|
|
||||||
Model::unguard();
|
|
||||||
|
|
||||||
// $this->call("OthersTableSeeder");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,112 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Providers;
|
|
||||||
|
|
||||||
use Illuminate\Support\ServiceProvider;
|
|
||||||
use Illuminate\Database\Eloquent\Factory;
|
|
||||||
|
|
||||||
class AggiornamentiServiceProvider extends ServiceProvider
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var string $moduleName
|
|
||||||
*/
|
|
||||||
protected $moduleName = 'Aggiornamenti';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string $moduleNameLower
|
|
||||||
*/
|
|
||||||
protected $moduleNameLower = 'aggiornamenti';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Boot the application events.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function boot()
|
|
||||||
{
|
|
||||||
$this->registerTranslations();
|
|
||||||
$this->registerConfig();
|
|
||||||
$this->registerViews();
|
|
||||||
$this->loadMigrationsFrom(module_path($this->moduleName, 'Database/Migrations'));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register the service provider.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function register()
|
|
||||||
{
|
|
||||||
$this->app->register(RouteServiceProvider::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register config.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
protected function registerConfig()
|
|
||||||
{
|
|
||||||
$this->publishes([
|
|
||||||
module_path($this->moduleName, 'Config/config.php') => config_path($this->moduleNameLower . '.php'),
|
|
||||||
], 'config');
|
|
||||||
$this->mergeConfigFrom(
|
|
||||||
module_path($this->moduleName, 'Config/config.php'), $this->moduleNameLower
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register views.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function registerViews()
|
|
||||||
{
|
|
||||||
$viewPath = resource_path('views/modules/' . $this->moduleNameLower);
|
|
||||||
|
|
||||||
$sourcePath = module_path($this->moduleName, 'Resources/views');
|
|
||||||
|
|
||||||
$this->publishes([
|
|
||||||
$sourcePath => $viewPath
|
|
||||||
], ['views', $this->moduleNameLower . '-module-views']);
|
|
||||||
|
|
||||||
$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register translations.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function registerTranslations()
|
|
||||||
{
|
|
||||||
$langPath = resource_path('lang/modules/' . $this->moduleNameLower);
|
|
||||||
|
|
||||||
if (is_dir($langPath)) {
|
|
||||||
$this->loadTranslationsFrom($langPath, $this->moduleNameLower);
|
|
||||||
} else {
|
|
||||||
$this->loadTranslationsFrom(module_path($this->moduleName, 'Resources/lang'), $this->moduleNameLower);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the services provided by the provider.
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function provides()
|
|
||||||
{
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
private function getPublishableViewPaths(): array
|
|
||||||
{
|
|
||||||
$paths = [];
|
|
||||||
foreach (\Config::get('view.paths') as $path) {
|
|
||||||
if (is_dir($path . '/modules/' . $this->moduleNameLower)) {
|
|
||||||
$paths[] = $path . '/modules/' . $this->moduleNameLower;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $paths;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,69 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Providers;
|
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
|
||||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
|
||||||
|
|
||||||
class RouteServiceProvider extends ServiceProvider
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The module namespace to assume when generating URLs to actions.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $moduleNamespace = 'Modules\Aggiornamenti\Http\Controllers';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Called before routes are registered.
|
|
||||||
*
|
|
||||||
* Register any model bindings or pattern based filters.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function boot()
|
|
||||||
{
|
|
||||||
parent::boot();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Define the routes for the application.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function map()
|
|
||||||
{
|
|
||||||
$this->mapApiRoutes();
|
|
||||||
|
|
||||||
$this->mapWebRoutes();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Define the "web" routes for the application.
|
|
||||||
*
|
|
||||||
* These routes all receive session state, CSRF protection, etc.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
protected function mapWebRoutes()
|
|
||||||
{
|
|
||||||
Route::middleware('web')
|
|
||||||
->namespace($this->moduleNamespace)
|
|
||||||
->group(module_path('Aggiornamenti', '/Routes/web.php'));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Define the "api" routes for the application.
|
|
||||||
*
|
|
||||||
* These routes are typically stateless.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
protected function mapApiRoutes()
|
|
||||||
{
|
|
||||||
Route::prefix('api')
|
|
||||||
->middleware('api')
|
|
||||||
->namespace($this->moduleNamespace)
|
|
||||||
->group(module_path('Aggiornamenti', '/Routes/api.php'));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
|
|
||||||
/*
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
| API Routes
|
|
||||||
|--------------------------------------------------------------------------
|
|
||||||
|
|
|
||||||
| Here is where you can register API routes for your application. These
|
|
||||||
| routes are loaded by the RouteServiceProvider within a group which
|
|
||||||
| is assigned the "api" middleware group. Enjoy building your API!
|
|
||||||
|
|
|
||||||
*/
|
|
||||||
|
|
||||||
Route::middleware('auth:api')->get('/aggiornamenti', function (Request $request) {
|
|
||||||
return $request->user();
|
|
||||||
});
|
|
@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "devcode-it/osm-aggiornamenti-module",
|
|
||||||
"description": "",
|
|
||||||
"authors": [{
|
|
||||||
"name": "DevCode s.n.c.",
|
|
||||||
"email": "info@openstamanager.com"
|
|
||||||
}],
|
|
||||||
"require": {
|
|
||||||
"erusev/parsedown": "^1.7"
|
|
||||||
},
|
|
||||||
"extra": {
|
|
||||||
"laravel": {
|
|
||||||
"providers": [],
|
|
||||||
"aliases": {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Modules\\Aggiornamenti\\": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Aggiornamenti",
|
|
||||||
"alias": "aggiornamenti",
|
|
||||||
"description": "",
|
|
||||||
"keywords": [],
|
|
||||||
"priority": 0,
|
|
||||||
"providers": [
|
|
||||||
"Modules\\Aggiornamenti\\Providers\\AggiornamentiServiceProvider"
|
|
||||||
],
|
|
||||||
"aliases": {},
|
|
||||||
"files": [],
|
|
||||||
"requires": []
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Aggiornamenti": true
|
|
||||||
}
|
|
1
packages/devcode-it/aggiornamenti/.styleci.yml
Normal file
1
packages/devcode-it/aggiornamenti/.styleci.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
preset: laravel
|
8
packages/devcode-it/aggiornamenti/changelog.md
Normal file
8
packages/devcode-it/aggiornamenti/changelog.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to `Aggiornamenti` will be documented in this file.
|
||||||
|
|
||||||
|
## Version 1.0
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Everything
|
42
packages/devcode-it/aggiornamenti/composer.json
Normal file
42
packages/devcode-it/aggiornamenti/composer.json
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"name": "devcode-it/aggiornamenti",
|
||||||
|
"description": ":package_description",
|
||||||
|
"license": "license",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "author name",
|
||||||
|
"email": "author email",
|
||||||
|
"homepage": "author homepage"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"homepage": "https://github.com/devcode-it/aggiornamenti",
|
||||||
|
"keywords": ["Laravel", "Aggiornamenti"],
|
||||||
|
"require": {
|
||||||
|
"erusev/parsedown": "^1.7",
|
||||||
|
"illuminate/support": "~7|~8"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~9.0",
|
||||||
|
"orchestra/testbench": "~5|~6"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"DevCode\\Aggiornamenti\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"DevCode\\Aggiornamenti\\Tests\\": "tests"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"DevCode\\Aggiornamenti\\ServiceProvider"
|
||||||
|
],
|
||||||
|
"aliases": {
|
||||||
|
"Aggiornamenti": "DevCode\\Aggiornamenti\\Facades\\Aggiornamenti"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
27
packages/devcode-it/aggiornamenti/contributing.md
Normal file
27
packages/devcode-it/aggiornamenti/contributing.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Contributions are welcome and will be fully credited.
|
||||||
|
|
||||||
|
Contributions are accepted via Pull Requests on [Github](https://github.com/devcode-it/aggiornamenti).
|
||||||
|
|
||||||
|
# Things you could do
|
||||||
|
If you want to contribute but do not know where to start, this list provides some starting points.
|
||||||
|
- Add license text
|
||||||
|
- Remove rewriteRules.php
|
||||||
|
- Set up TravisCI, StyleCI, ScrutinizerCI
|
||||||
|
- Write a comprehensive ReadMe
|
||||||
|
|
||||||
|
## Pull Requests
|
||||||
|
|
||||||
|
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
|
||||||
|
|
||||||
|
- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.
|
||||||
|
|
||||||
|
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
|
||||||
|
|
||||||
|
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
|
||||||
|
|
||||||
|
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
|
||||||
|
|
||||||
|
|
||||||
|
**Happy coding**!
|
5
packages/devcode-it/aggiornamenti/license.md
Normal file
5
packages/devcode-it/aggiornamenti/license.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# The license
|
||||||
|
|
||||||
|
Copyright (c) author name <author email>
|
||||||
|
|
||||||
|
...Add your license text here...
|
22
packages/devcode-it/aggiornamenti/phpunit.xml
Normal file
22
packages/devcode-it/aggiornamenti/phpunit.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit bootstrap="vendor/autoload.php"
|
||||||
|
backupGlobals="false"
|
||||||
|
backupStaticAttributes="false"
|
||||||
|
colors="true"
|
||||||
|
verbose="true"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
processIsolation="false"
|
||||||
|
stopOnFailure="false">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Package">
|
||||||
|
<directory suffix=".php">./tests/</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory>src/</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
</phpunit>
|
57
packages/devcode-it/aggiornamenti/readme.md
Normal file
57
packages/devcode-it/aggiornamenti/readme.md
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# Aggiornamenti
|
||||||
|
|
||||||
|
[![Latest Version on Packagist][ico-version]][link-packagist]
|
||||||
|
[![Total Downloads][ico-downloads]][link-downloads]
|
||||||
|
[![Build Status][ico-travis]][link-travis]
|
||||||
|
[![StyleCI][ico-styleci]][link-styleci]
|
||||||
|
|
||||||
|
This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Via Composer
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ composer require devcode-it/aggiornamenti
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
## Change log
|
||||||
|
|
||||||
|
Please see the [changelog](changelog.md) for more information on what has changed recently.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ composer test
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please see [contributing.md](contributing.md) for details and a todolist.
|
||||||
|
|
||||||
|
## Security
|
||||||
|
|
||||||
|
If you discover any security related issues, please email author email instead of using the issue tracker.
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
- [author name][link-author]
|
||||||
|
- [All Contributors][link-contributors]
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
license. Please see the [license file](license.md) for more information.
|
||||||
|
|
||||||
|
[ico-version]: https://img.shields.io/packagist/v/devcode-it/aggiornamenti.svg?style=flat-square
|
||||||
|
[ico-downloads]: https://img.shields.io/packagist/dt/devcode-it/aggiornamenti.svg?style=flat-square
|
||||||
|
[ico-travis]: https://img.shields.io/travis/devcode-it/aggiornamenti/master.svg?style=flat-square
|
||||||
|
[ico-styleci]: https://styleci.io/repos/12345678/shield
|
||||||
|
|
||||||
|
[link-packagist]: https://packagist.org/packages/devcode-it/aggiornamenti
|
||||||
|
[link-downloads]: https://packagist.org/packages/devcode-it/aggiornamenti
|
||||||
|
[link-travis]: https://travis-ci.org/devcode-it/aggiornamenti
|
||||||
|
[link-styleci]: https://styleci.io/repos/12345678
|
||||||
|
[link-author]: https://github.com/devcode-it
|
||||||
|
[link-contributors]: ../../contributors
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Modules\Aggiornamenti\Http\Controllers\AggiornamentiController;
|
use DevCode\Aggiornamenti\Controllers\AggiornamentiController;
|
||||||
use Modules\Aggiornamenti\Http\Controllers\ControlliAggiuntiviController;
|
use DevCode\Aggiornamenti\Controllers\ControlliAggiuntiviController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Http;
|
namespace DevCode\Aggiornamenti;
|
||||||
|
|
||||||
use Models\Cache;
|
use Models\Cache;
|
||||||
use Models\Group;
|
use Models\Group;
|
@ -1,14 +1,14 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Http\Controllers;
|
namespace DevCode\Aggiornamenti\Controllers;
|
||||||
|
|
||||||
use App\Http\Controllers\RequirementsController;
|
use App\Http\Controllers\RequirementsController;
|
||||||
use Illuminate\Contracts\Support\Renderable;
|
use Illuminate\Contracts\Support\Renderable;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Routing\Controller;
|
use Illuminate\Routing\Controller;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Modules\Aggiornamenti\Http\Aggiornamento;
|
use DevCode\Aggiornamenti\Aggiornamento;
|
||||||
use Modules\Aggiornamenti\Http\DowngradeException;
|
use DevCode\Aggiornamenti\DowngradeException;
|
||||||
|
|
||||||
class AggiornamentiController extends Controller
|
class AggiornamentiController extends Controller
|
||||||
{
|
{
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Http\Controllers;
|
namespace DevCode\Aggiornamenti\Controllers;
|
||||||
|
|
||||||
use App\Http\Controllers\RequirementsController;
|
use App\Http\Controllers\RequirementsController;
|
||||||
use Illuminate\Contracts\Support\Renderable;
|
use Illuminate\Contracts\Support\Renderable;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Routing\Controller;
|
use Illuminate\Routing\Controller;
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Modules\Aggiornamenti\Http\Aggiornamento;
|
use DevCode\Aggiornamenti\Aggiornamento;
|
||||||
|
|
||||||
class ControlliAggiuntiviController extends Controller
|
class ControlliAggiuntiviController extends Controller
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Http;
|
namespace DevCode\Aggiornamenti;
|
||||||
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DevCode\Aggiornamenti\Facades;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
|
||||||
|
class Aggiornamenti extends Facade
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the registered name of the component.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected static function getFacadeAccessor(): string
|
||||||
|
{
|
||||||
|
return 'aggiornamenti';
|
||||||
|
}
|
||||||
|
}
|
10
packages/devcode-it/aggiornamenti/src/Modulo.php
Normal file
10
packages/devcode-it/aggiornamenti/src/Modulo.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace DevCode\Aggiornamenti;
|
||||||
|
|
||||||
|
|
||||||
|
class Modulo
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
82
packages/devcode-it/aggiornamenti/src/ServiceProvider.php
Normal file
82
packages/devcode-it/aggiornamenti/src/ServiceProvider.php
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DevCode\Aggiornamenti;
|
||||||
|
|
||||||
|
use Illuminate\Support\ServiceProvider as BaseProvider;
|
||||||
|
|
||||||
|
class ServiceProvider extends BaseProvider
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Perform post-registration booting of services.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function boot(): void
|
||||||
|
{
|
||||||
|
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'devcode-it');
|
||||||
|
$this->loadViewsFrom(__DIR__.'/../resources/views', 'aggiornamenti');
|
||||||
|
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
|
||||||
|
$this->loadRoutesFrom(__DIR__.'/../routes.php');
|
||||||
|
|
||||||
|
// Publishing is only necessary when using the CLI.
|
||||||
|
if ($this->app->runningInConsole()) {
|
||||||
|
$this->bootForConsole();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register any package services.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register(): void
|
||||||
|
{
|
||||||
|
$this->mergeConfigFrom(__DIR__.'/../config/aggiornamenti.php', 'aggiornamenti');
|
||||||
|
|
||||||
|
// Register the service the package provides.
|
||||||
|
$this->app->singleton('aggiornamenti', function ($app) {
|
||||||
|
return new Modulo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the services provided by the provider.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function provides()
|
||||||
|
{
|
||||||
|
return ['aggiornamenti'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Console-specific booting.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function bootForConsole(): void
|
||||||
|
{
|
||||||
|
// Publishing the configuration file.
|
||||||
|
$this->publishes([
|
||||||
|
__DIR__.'/../config/aggiornamenti.php' => config_path('aggiornamenti.php'),
|
||||||
|
], 'aggiornamenti.config');
|
||||||
|
|
||||||
|
// Publishing the views.
|
||||||
|
/*$this->publishes([
|
||||||
|
__DIR__.'/../resources/views' => base_path('resources/views/vendor/devcode-it'),
|
||||||
|
], 'aggiornamenti.views');*/
|
||||||
|
|
||||||
|
// Publishing assets.
|
||||||
|
/*$this->publishes([
|
||||||
|
__DIR__.'/../resources/assets' => public_path('vendor/devcode-it'),
|
||||||
|
], 'aggiornamenti.views');*/
|
||||||
|
|
||||||
|
// Publishing the translation files.
|
||||||
|
/*$this->publishes([
|
||||||
|
__DIR__.'/../resources/lang' => resource_path('lang/vendor/devcode-it'),
|
||||||
|
], 'aggiornamenti.views');*/
|
||||||
|
|
||||||
|
// Registering package commands.
|
||||||
|
// $this->commands([]);
|
||||||
|
}
|
||||||
|
}
|
@ -17,7 +17,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Modules\Aggiornamenti\Http;
|
namespace DevCode\Aggiornamenti;
|
||||||
|
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use Hooks\CachedManager;
|
use Hooks\CachedManager;
|
1
packages/devcode-it/causali-trasporto/.styleci.yml
Normal file
1
packages/devcode-it/causali-trasporto/.styleci.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
preset: laravel
|
8
packages/devcode-it/causali-trasporto/changelog.md
Normal file
8
packages/devcode-it/causali-trasporto/changelog.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
All notable changes to `CausaliTrasporto` will be documented in this file.
|
||||||
|
|
||||||
|
## Version 1.0
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Everything
|
41
packages/devcode-it/causali-trasporto/composer.json
Normal file
41
packages/devcode-it/causali-trasporto/composer.json
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "devcode-it/causali-trasporto",
|
||||||
|
"description": ":package_description",
|
||||||
|
"license": "license",
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "author name",
|
||||||
|
"email": "author email",
|
||||||
|
"homepage": "author homepage"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"homepage": "https://github.com/devcode-it/causali-trasporto",
|
||||||
|
"keywords": ["Laravel", "CausaliTrasporto"],
|
||||||
|
"require": {
|
||||||
|
"illuminate/support": "~7|~8"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~9.0",
|
||||||
|
"orchestra/testbench": "~5|~6"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"DevCode\\CausaliTrasporto\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"DevCode\\CausaliTrasporto\\Tests\\": "tests"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"extra": {
|
||||||
|
"laravel": {
|
||||||
|
"providers": [
|
||||||
|
"DevCode\\CausaliTrasporto\\ServiceProvider"
|
||||||
|
],
|
||||||
|
"aliases": {
|
||||||
|
"CausaliTrasporto": "DevCode\\CausaliTrasporto\\Facades\\CausaliTrasporto"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
27
packages/devcode-it/causali-trasporto/contributing.md
Normal file
27
packages/devcode-it/causali-trasporto/contributing.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Contributing
|
||||||
|
|
||||||
|
Contributions are welcome and will be fully credited.
|
||||||
|
|
||||||
|
Contributions are accepted via Pull Requests on [Github](https://github.com/devcode-it/causali-trasporto).
|
||||||
|
|
||||||
|
# Things you could do
|
||||||
|
If you want to contribute but do not know where to start, this list provides some starting points.
|
||||||
|
- Add license text
|
||||||
|
- Remove rewriteRules.php
|
||||||
|
- Set up TravisCI, StyleCI, ScrutinizerCI
|
||||||
|
- Write a comprehensive ReadMe
|
||||||
|
|
||||||
|
## Pull Requests
|
||||||
|
|
||||||
|
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
|
||||||
|
|
||||||
|
- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.
|
||||||
|
|
||||||
|
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
|
||||||
|
|
||||||
|
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
|
||||||
|
|
||||||
|
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
|
||||||
|
|
||||||
|
|
||||||
|
**Happy coding**!
|
5
packages/devcode-it/causali-trasporto/license.md
Normal file
5
packages/devcode-it/causali-trasporto/license.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# The license
|
||||||
|
|
||||||
|
Copyright (c) author name <author email>
|
||||||
|
|
||||||
|
...Add your license text here...
|
22
packages/devcode-it/causali-trasporto/phpunit.xml
Normal file
22
packages/devcode-it/causali-trasporto/phpunit.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<phpunit bootstrap="vendor/autoload.php"
|
||||||
|
backupGlobals="false"
|
||||||
|
backupStaticAttributes="false"
|
||||||
|
colors="true"
|
||||||
|
verbose="true"
|
||||||
|
convertErrorsToExceptions="true"
|
||||||
|
convertNoticesToExceptions="true"
|
||||||
|
convertWarningsToExceptions="true"
|
||||||
|
processIsolation="false"
|
||||||
|
stopOnFailure="false">
|
||||||
|
<testsuites>
|
||||||
|
<testsuite name="Package">
|
||||||
|
<directory suffix=".php">./tests/</directory>
|
||||||
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory>src/</directory>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
</phpunit>
|
57
packages/devcode-it/causali-trasporto/readme.md
Normal file
57
packages/devcode-it/causali-trasporto/readme.md
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# CausaliTrasporto
|
||||||
|
|
||||||
|
[![Latest Version on Packagist][ico-version]][link-packagist]
|
||||||
|
[![Total Downloads][ico-downloads]][link-downloads]
|
||||||
|
[![Build Status][ico-travis]][link-travis]
|
||||||
|
[![StyleCI][ico-styleci]][link-styleci]
|
||||||
|
|
||||||
|
This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Via Composer
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ composer require devcode-it/causali-trasporto
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
## Change log
|
||||||
|
|
||||||
|
Please see the [changelog](changelog.md) for more information on what has changed recently.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
$ composer test
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please see [contributing.md](contributing.md) for details and a todolist.
|
||||||
|
|
||||||
|
## Security
|
||||||
|
|
||||||
|
If you discover any security related issues, please email author email instead of using the issue tracker.
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
- [author name][link-author]
|
||||||
|
- [All Contributors][link-contributors]
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
license. Please see the [license file](license.md) for more information.
|
||||||
|
|
||||||
|
[ico-version]: https://img.shields.io/packagist/v/devcode-it/causali-trasporto.svg?style=flat-square
|
||||||
|
[ico-downloads]: https://img.shields.io/packagist/dt/devcode-it/causali-trasporto.svg?style=flat-square
|
||||||
|
[ico-travis]: https://img.shields.io/travis/devcode-it/causali-trasporto/master.svg?style=flat-square
|
||||||
|
[ico-styleci]: https://styleci.io/repos/12345678/shield
|
||||||
|
|
||||||
|
[link-packagist]: https://packagist.org/packages/devcode-it/causali-trasporto
|
||||||
|
[link-downloads]: https://packagist.org/packages/devcode-it/causali-trasporto
|
||||||
|
[link-travis]: https://travis-ci.org/devcode-it/causali-trasporto
|
||||||
|
[link-styleci]: https://styleci.io/repos/12345678
|
||||||
|
[link-author]: https://github.com/devcode-it
|
||||||
|
[link-contributors]: ../../contributors
|
@ -0,0 +1,221 @@
|
|||||||
|
#, fuzzy
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: OpenSTAManager\n"
|
||||||
|
"POT-Creation-Date: 2021-03-15 16:02+0100\n"
|
||||||
|
"PO-Revision-Date: 2017-09-06 09:35+0200\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"Language: it_IT\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 2.4.2\n"
|
||||||
|
"X-Poedit-Basepath: ../../..\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
|
"X-Poedit-KeywordsList: tr\n"
|
||||||
|
"X-Poedit-SearchPath-0: .\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-0: .svn\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-1: assets\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-2: backup\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-3: vendor\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-4: assets\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-5: bower_components\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-6: node_modules\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-7: logs\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-8: files\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-9: docs\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-10: .*\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-11: *.log\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-12: *.md\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-13: *.json\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-14: *.lock\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-15: *.phar\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-16: *.css\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-17: *.js\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-18: .git\n"
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:10
|
||||||
|
msgid "Personalizzazioni"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:19
|
||||||
|
msgid "Percorso"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:20
|
||||||
|
msgid "Cartella personalizzata"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:21
|
||||||
|
msgid "Database personalizzato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:27 Resources/views/index.blade.php:28
|
||||||
|
msgid "Si"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:27 Resources/views/index.blade.php:28
|
||||||
|
msgid "No"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:33
|
||||||
|
msgid "Si sconsiglia l'aggiornamento senza il supporto dell'assistenza ufficiale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:35
|
||||||
|
msgid "Non ci sono strutture personalizzate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:41 Resources/views/update.blade.php:41
|
||||||
|
msgid "Attenzione!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:41
|
||||||
|
msgid "Ci sono delle tabelle non previste nella versione standard del gestionale: _LIST_"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:53
|
||||||
|
msgid "Devi modificare il seguenti parametri del file di configurazione PHP (_FILE_) per poter caricare gli aggiornamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:135
|
||||||
|
msgid "Carica un aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:147
|
||||||
|
msgid "Carica"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:158
|
||||||
|
msgid "Verifica l'integrità dell'intallazione"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:166
|
||||||
|
msgid "Controlla file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:170
|
||||||
|
msgid "Controlla database"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:174
|
||||||
|
msgid "Controlla gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:184
|
||||||
|
msgid "Ricerca aggiornamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:192
|
||||||
|
msgid "Ricerca"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:197
|
||||||
|
msgid "Estensione curl non supportata"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:202
|
||||||
|
msgid "E' stato individuato un nuovo aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:203
|
||||||
|
msgid "Attenzione: la versione individuata è in fase sperimentale, e pertanto può presentare diversi bug e malfunzionamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:205
|
||||||
|
msgid "Scaricalo manualmente (_LINK_) oppure in automatico"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:208
|
||||||
|
msgid "Scarica"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:213
|
||||||
|
msgid "Nessun aggiornamento presente"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:223
|
||||||
|
msgid "Requisiti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:3
|
||||||
|
msgid "Aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:9
|
||||||
|
msgid "Informazioni sull'aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:13
|
||||||
|
msgid "Changelog"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:22
|
||||||
|
msgid "Il pacchetto selezionato contiene un aggiornamento dell'intero gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:23
|
||||||
|
msgid "Si consiglia vivamente di effettuare un backup dell'installazione prima di procedere"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:26
|
||||||
|
msgid "Crea backup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:32
|
||||||
|
msgid "OpenSTAManager versione _VERSION_"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:41
|
||||||
|
msgid "Verranno aggiornate le sole componenti del pacchetto che non sono già installate e aggiornate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:45
|
||||||
|
msgid "Il pacchetto selezionato comprende i seguenti moduli"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:53 Resources/views/update.blade.php:72
|
||||||
|
msgid "Installato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:64
|
||||||
|
msgid "Il pacchetto selezionato comprende i seguenti plugin"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:91
|
||||||
|
msgid "Nessuna changelog individuabile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:100
|
||||||
|
msgid "Annulla"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:106
|
||||||
|
msgid "Procedi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:41
|
||||||
|
msgid "Estensione ZIP"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:41
|
||||||
|
msgid "da abilitare"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:191
|
||||||
|
msgid "Accesso negato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:197
|
||||||
|
msgid "Il pacchetto contiene una versione precedente del gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:199
|
||||||
|
msgid "Il pacchetto contiene solo componenti già installate e aggiornate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/UpdateHook.php:53
|
||||||
|
msgid "E' disponibile la versione _VERSION_ del gestionale"
|
||||||
|
msgstr ""
|
Binary file not shown.
@ -0,0 +1,232 @@
|
|||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: OpenSTAManager\n"
|
||||||
|
"POT-Creation-Date: 2021-03-15 16:02+0100\n"
|
||||||
|
"PO-Revision-Date: 2021-03-15 16:03+0100\n"
|
||||||
|
"Last-Translator: \n"
|
||||||
|
"Language-Team: \n"
|
||||||
|
"Language: de_DE\n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"X-Generator: Poedit 2.4.2\n"
|
||||||
|
"X-Poedit-Basepath: ..\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
"X-Poedit-SourceCharset: UTF-8\n"
|
||||||
|
"X-Poedit-KeywordsList: tr\n"
|
||||||
|
"X-Poedit-SearchPath-0: .\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-0: .svn\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-1: assets\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-2: backup\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-3: vendor\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-4: assets\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-5: bower_components\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-6: node_modules\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-7: logs\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-8: files\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-9: docs\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-10: .*\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-11: *.log\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-12: *.md\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-13: *.json\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-14: *.lock\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-15: *.phar\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-16: *.css\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-17: *.js\n"
|
||||||
|
"X-Poedit-SearchPathExcluded-18: .git\n"
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:10
|
||||||
|
msgid "Personalizzazioni"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:19
|
||||||
|
msgid "Percorso"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:20
|
||||||
|
msgid "Cartella personalizzata"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:21
|
||||||
|
msgid "Database personalizzato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:27 Resources/views/index.blade.php:28
|
||||||
|
msgid "Si"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:27 Resources/views/index.blade.php:28
|
||||||
|
msgid "No"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:33
|
||||||
|
msgid ""
|
||||||
|
"Si sconsiglia l'aggiornamento senza il supporto dell'assistenza ufficiale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:35
|
||||||
|
msgid "Non ci sono strutture personalizzate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:41 Resources/views/update.blade.php:41
|
||||||
|
msgid "Attenzione!"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:41
|
||||||
|
msgid ""
|
||||||
|
"Ci sono delle tabelle non previste nella versione standard del gestionale: "
|
||||||
|
"_LIST_"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:53
|
||||||
|
msgid ""
|
||||||
|
"Devi modificare il seguenti parametri del file di configurazione PHP "
|
||||||
|
"(_FILE_) per poter caricare gli aggiornamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:135
|
||||||
|
msgid "Carica un aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:147
|
||||||
|
msgid "Carica"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:158
|
||||||
|
msgid "Verifica l'integrità dell'intallazione"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:166
|
||||||
|
msgid "Controlla file"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:170
|
||||||
|
msgid "Controlla database"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:174
|
||||||
|
msgid "Controlla gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:184
|
||||||
|
msgid "Ricerca aggiornamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:192
|
||||||
|
msgid "Ricerca"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:197
|
||||||
|
msgid "Estensione curl non supportata"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:202
|
||||||
|
msgid "E' stato individuato un nuovo aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:203
|
||||||
|
msgid ""
|
||||||
|
"Attenzione: la versione individuata è in fase sperimentale, e pertanto può "
|
||||||
|
"presentare diversi bug e malfunzionamenti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:205
|
||||||
|
msgid "Scaricalo manualmente (_LINK_) oppure in automatico"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:208
|
||||||
|
msgid "Scarica"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:213
|
||||||
|
msgid "Nessun aggiornamento presente"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/index.blade.php:223
|
||||||
|
msgid "Requisiti"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:3
|
||||||
|
msgid "Aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:9
|
||||||
|
msgid "Informazioni sull'aggiornamento"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:13
|
||||||
|
msgid "Changelog"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:22
|
||||||
|
msgid ""
|
||||||
|
"Il pacchetto selezionato contiene un aggiornamento dell'intero gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:23
|
||||||
|
msgid ""
|
||||||
|
"Si consiglia vivamente di effettuare un backup dell'installazione prima di "
|
||||||
|
"procedere"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:26
|
||||||
|
msgid "Crea backup"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:32
|
||||||
|
msgid "OpenSTAManager versione _VERSION_"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:41
|
||||||
|
msgid ""
|
||||||
|
"Verranno aggiornate le sole componenti del pacchetto che non sono già "
|
||||||
|
"installate e aggiornate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:45
|
||||||
|
msgid "Il pacchetto selezionato comprende i seguenti moduli"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:53 Resources/views/update.blade.php:72
|
||||||
|
msgid "Installato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:64
|
||||||
|
msgid "Il pacchetto selezionato comprende i seguenti plugin"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:91
|
||||||
|
msgid "Nessuna changelog individuabile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:100
|
||||||
|
msgid "Annulla"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Resources/views/update.blade.php:106
|
||||||
|
msgid "Procedi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:41
|
||||||
|
msgid "Estensione ZIP"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:41
|
||||||
|
msgid "da abilitare"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:191
|
||||||
|
msgid "Accesso negato"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:197
|
||||||
|
msgid "Il pacchetto contiene una versione precedente del gestionale"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/Controllers/AggiornamentiController.php:199
|
||||||
|
msgid "Il pacchetto contiene solo componenti già installate e aggiornate"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: Http/UpdateHook.php:53
|
||||||
|
msgid "E' disponibile la versione _VERSION_ del gestionale"
|
||||||
|
msgstr ""
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
4
packages/devcode-it/causali-trasporto/resources/lang/i18n/it_IT/.gitignore
vendored
Normal file
4
packages/devcode-it/causali-trasporto/resources/lang/i18n/it_IT/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Ignore everything in this directory
|
||||||
|
*
|
||||||
|
# Except this file
|
||||||
|
!.gitignore
|
@ -0,0 +1,38 @@
|
|||||||
|
@extends('modules.base')
|
||||||
|
|
||||||
|
@section('module_content')
|
||||||
|
<form action="" method="post" id="edit-form">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
<input type="hidden" name="op" value="update">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
{[ "type": "text", "label": "{{ _i('Descrizione') }}", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">{{ _i('Flags') }}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Causale predefinita') }}", "name": "predefined", "value": "$predefined$", "help":"{{ _i('Impostare questa causale di trasporto come predefinita per i ddt') }}." ]}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Importabile?') }}", "name": "is_importabile", "value": "$is_importabile$", "help": "{{ _i('I documenti associati a questa causale possono essere importati a livello contabile in altri documenti (per esempio, in Fatture)') }}", "placeholder": "{{ _i('Importabile') }}" ]}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Abilita storno') }}", "name": "reversed", "value": "$reversed$", "help": "{{ _i('I documenti associati a questa causale possono essere stornati come nota di credito') }}", "placeholder": "{{ _i('Abilita storno') }}" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
@endsection
|
@ -0,0 +1,38 @@
|
|||||||
|
@extends('modules.base')
|
||||||
|
|
||||||
|
@section('module_content')
|
||||||
|
<form action="" method="post" id="edit-form">
|
||||||
|
<input type="hidden" name="backto" value="record-edit">
|
||||||
|
<input type="hidden" name="op" value="update">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
{[ "type": "text", "label": "{{ _i('Descrizione') }}", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="panel panel-primary">
|
||||||
|
<div class="panel-heading">
|
||||||
|
<h3 class="panel-title">{{ _i('Flags') }}</h3>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Causale predefinita') }}", "name": "predefined", "value": "$predefined$", "help":"{{ _i('Impostare questa causale di trasporto come predefinita per i ddt') }}." ]}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Importabile?') }}", "name": "is_importabile", "value": "$is_importabile$", "help": "{{ _i('I documenti associati a questa causale possono essere importati a livello contabile in altri documenti (per esempio, in Fatture)') }}", "placeholder": "{{ _i('Importabile') }}" ]}
|
||||||
|
</div>
|
||||||
|
<div class="col-md-4">
|
||||||
|
{[ "type": "checkbox", "label": "{{ _i('Abilita storno') }}", "name": "reversed", "value": "$reversed$", "help": "{{ _i('I documenti associati a questa causale possono essere stornati come nota di credito') }}", "placeholder": "{{ _i('Abilita storno') }}" ]}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
@endsection
|
24
packages/devcode-it/causali-trasporto/routes.php
Normal file
24
packages/devcode-it/causali-trasporto/routes.php
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Route;
|
||||||
|
use DevCode\CausaliTrasporto\Controllers\CausaliTrasportoController;
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Web Routes
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Here is where you can register web routes for your application. These
|
||||||
|
| routes are loaded by the RouteServiceProvider within a group which
|
||||||
|
| contains the "web" middleware group. Now create something great!
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
Route::prefix('causali-trasporto')
|
||||||
|
->group(function () {
|
||||||
|
Route::get('', [CausaliTrasportoController::class, 'index']);
|
||||||
|
|
||||||
|
Route::get('/{id}', [CausaliTrasportoController::class, 'dettagli'])
|
||||||
|
->whereNumber('hook_id');
|
||||||
|
});
|
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DevCode\CausaliTrasporto\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Controllers\RequirementsController;
|
||||||
|
use Illuminate\Contracts\Support\Renderable;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Routing\Controller;
|
||||||
|
use InvalidArgumentException;
|
||||||
|
use DevCode\Aggiornamenti\Aggiornamento;
|
||||||
|
use DevCode\Aggiornamenti\DowngradeException;
|
||||||
|
|
||||||
|
class CausaliTrasportoController extends Controller
|
||||||
|
{
|
||||||
|
public $module;
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->module = module('Causali');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
* @return Renderable
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
return view('causali-trasporto::index', [
|
||||||
|
'module' => $this->module,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
* @return Renderable
|
||||||
|
*/
|
||||||
|
public function dettagli()
|
||||||
|
{
|
||||||
|
$args = [
|
||||||
|
'module' => $this->module,
|
||||||
|
];
|
||||||
|
return view('causali-trasporto::dettagli', $args);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DevCode\CausaliTrasporto\Facades;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
|
||||||
|
class CausaliTrasporto extends Facade
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the registered name of the component.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
protected static function getFacadeAccessor(): string
|
||||||
|
{
|
||||||
|
return 'causali-trasporto';
|
||||||
|
}
|
||||||
|
}
|
10
packages/devcode-it/causali-trasporto/src/Modulo.php
Normal file
10
packages/devcode-it/causali-trasporto/src/Modulo.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
namespace DevCode\CausaliTrasporto;
|
||||||
|
|
||||||
|
|
||||||
|
class Modulo
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,77 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DevCode\CausaliTrasporto;
|
||||||
|
|
||||||
|
use Illuminate\Support\ServiceProvider as BaseProvider;
|
||||||
|
|
||||||
|
class ServiceProvider extends BaseProvider
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Perform post-registration booting of services.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function boot(): void
|
||||||
|
{
|
||||||
|
//$this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'causali-trasporto');
|
||||||
|
$this->loadViewsFrom(__DIR__.'/../resources/views', 'causali-trasporto');
|
||||||
|
$this->loadMigrationsFrom(__DIR__.'/../database/migrations');
|
||||||
|
$this->loadRoutesFrom(__DIR__.'/../routes.php');
|
||||||
|
|
||||||
|
// Publishing is only necessary when using the CLI.
|
||||||
|
if ($this->app->runningInConsole()) {
|
||||||
|
$this->bootForConsole();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register any package services.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register(): void
|
||||||
|
{
|
||||||
|
$this->mergeConfigFrom(__DIR__.'/../config/causali-trasporto.php', 'causali-trasporto');
|
||||||
|
|
||||||
|
// Register the service the package provides.
|
||||||
|
$this->app->singleton('causali-trasporto', function ($app) {
|
||||||
|
return new CausaliTrasporto;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the services provided by the provider.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function provides()
|
||||||
|
{
|
||||||
|
return ['causali-trasporto'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Console-specific booting.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function bootForConsole(): void
|
||||||
|
{
|
||||||
|
// Publishing the configuration file.
|
||||||
|
$this->publishes([
|
||||||
|
__DIR__.'/../config/causali-trasporto.php' => config_path('causali-trasporto.php'),
|
||||||
|
], 'causali-trasporto');
|
||||||
|
|
||||||
|
// Publishing assets.
|
||||||
|
$this->publishes([
|
||||||
|
__DIR__.'/../resources/assets' => public_path('vendor/devcode-it'),
|
||||||
|
], 'causali-trasporto');
|
||||||
|
|
||||||
|
// Publishing the translation files.
|
||||||
|
$this->publishes([
|
||||||
|
__DIR__.'/../resources/lang' => resource_path('lang/vendor/devcode-it'),
|
||||||
|
], 'causali-trasporto');
|
||||||
|
|
||||||
|
// Registering package commands.
|
||||||
|
// $this->commands([]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user