bitexpert / disco-demos Goto Github PK
View Code? Open in Web Editor NEWDemo applications to showcase how to use Disco.
License: Apache License 2.0
Demo applications to showcase how to use Disco.
License: Apache License 2.0
It works nicely with expressive, however I would stick a bit more to the default expressive structure. This has a few advantages:
config/autoload
path.Files you need to get this working:
./config/config.php
Add this file back and change the last line to
return $config;
./config/container.php
<?php
use bitExpert\Disco\BeanFactoryConfiguration;
use bitExpert\Disco\AnnotationBeanFactory;
use bitExpert\Disco\BeanFactoryRegistry;
// Load configuration
$config = require __DIR__ . '/config.php';
// Build container
$beanConfig = new BeanFactoryConfiguration($config['di']['cache']);
$container = new AnnotationBeanFactory($config['di']['config'], ['expressive' => $config], $beanConfig);
BeanFactoryRegistry::register($container);
return $container;
./config/autoload/disco.global.php
<?php
return [
'di' => [
'config' => \App\Config::class,
'cache' => sys_get_temp_dir(),
],
];
./src/App/Config.php
Obviously you want that file.
Other files like public/index.php
don't need to be changed this way.
And finally integrating this with the expressive installer will be a nice challenge.
./src/App/Config.php
needs to be generated somehow in case different routers and template engines are going to be installed.Hi @shochdoerfer,
thank you for the talk yesterday, I pointed out a Yii 2.0 Framework demo might be interesting.
There are a lot of changes upcoming in 2.1 see yiisoft/yii2#15436
And here is the new DI container https://github.com/yiisoft/di.
Best regards,
Tobias
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.