class Kernel extends BaseKernel
{
use MicroKernelTrait;
private const CONFIG_EXTS = '.{php,xml,yaml,yml}';
public function registerBundles(): iterable
{
$contents = require $this->getProjectDir().'/config/bundles.php';
foreach ($contents as $class => $envs) {
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
yield new $class();
}
}
}
public function getProjectDir(): string
{
return \dirname(__DIR__);
}
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
$container->setParameter('container.dumper.inline_class_loader', true);
$confDir = $this->getProjectDir().'/config';
$loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
}
protected function configureRoutes(RouteCollectionBuilder $routes): void
{
$confDir = $this->getProjectDir().'/config';
$routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
}
}
# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 163-172-216-1.rev.poneytelecom.eu (163.172.216.1) 1.268 ms 1.199 ms 1.153 ms
2 195.154.2.126 (195.154.2.126) 0.362 ms 195.154.2.128 (195.154.2.128) 0.974 ms 195.154.2.126 (195.154.2.126) 0.915 ms
3 195.154.2.106 (195.154.2.106) 0.871 ms 0.777 ms 195.154.2.108 (195.154.2.108) 1.044 ms
4 core1.ams.net.google.com (80.249.208.247) 13.829 ms 13.731 ms 13.729 ms
5 108.170.241.161 (108.170.241.161) 11.859 ms 108.170.241.225 (108.170.241.225) 14.328 ms 14.027 ms
6 216.239.63.243 (216.239.63.243) 11.477 ms 216.239.63.203 (216.239.63.203) 11.608 ms 216.239.42.127 (216.239.42.127) 12.826 ms
7 google-public-dns-a.google.com (8.8.8.8) 10.765 ms 10.456 ms 10.642 ms
--- Дальше, когда меняю на хостеровские ---
# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 163.172.216.1 (163.172.216.1) 0.607 ms 0.955 ms 0.894 ms
2 195.154.2.128 (195.154.2.128) 0.545 ms 0.487 ms 195.154.2.126 (195.154.2.126) 0.458 ms
3 195.154.2.106 (195.154.2.106) 0.579 ms 0.770 ms 0.640 ms
4 80.249.208.247 (80.249.208.247) 13.231 ms 13.352 ms 13.493 ms
5 108.170.241.193 (108.170.241.193) 13.271 ms 13.367 ms 13.306 ms
6 108.170.234.19 (108.170.234.19) 14.028 ms 216.239.50.197 (216.239.50.197) 14.305 ms 108.170.236.147 (108.170.236.147) 12.830 ms
7 8.8.8.8 (8.8.8.8) 10.722 ms 10.799 ms 10.528 ms
# mtr 62.210.16.6 --report
Start: Mon Jul 30 21:19:38 2018
HOST: hp1 Loss% Snt Last Avg Best Wrst StDev
1.|-- 163.172.216.1 0.0% 10 0.6 0.6 0.5 0.8 0.0
2.|-- 195.154.2.128 0.0% 10 0.4 0.6 0.4 0.7 0.0
3.|-- 195.154.2.108 0.0% 10 1.0 1.0 0.9 1.2 0.0
4.|-- 195.154.2.124 0.0% 10 0.7 0.7 0.7 0.8 0.0
5.|-- 195.154.1.224 0.0% 10 0.7 0.6 0.6 0.7 0.0
6.|-- 62.210.16.6 0.0% 10 0.3 0.4 0.3 0.4 0.0