Расширения от vova07 (Vasile Crudu)

Выкладываем свои наработки
Ответить
Аватара пользователя
vova07
Сообщения: 1004
Зарегистрирован: 2012.11.29, 14:52
Откуда: Chisinau, Moldova

Расширения от vova07 (Vasile Crudu)

Сообщение vova07 »

Приветствую!

Решил создать данную тему чтобы можно было держать в определенном контроле свои расширения для Yii.
Она будет дополнятся новыми репозиториями по мере возможности.

Если у вас будут какие либо вопросы по данным расширениям то вы можете их задавать в комментариях данной темы.

Хочу заметить один момент который будет хорошо иметь введу:
Для Yii2-Start есть отдельная тема. Так что буду признателен если будете использовать именно её для вопросов по этому приложению.

Специально для тех кто просили поддержку в более быстром режиме был создан гиттер чат: https://gitter.im/vova07/yii2-extensions - хочу заметить что там я смогу отвечать только после работы, это примерно после 22:00 по UTC + 2 . Замечу что предназначение чата для более быстрых ответов на определенные вопросы, не для холивара или болтовни.

Итак сам список расширений:

- Yii2-Start (есть отдельная тема)
Модульное приложения которое позволит вам быстро начать разработку проектов на Yii 2.

Спец модули для Yii2-Start:

- yii2-start-blogs-module
Модуль блога
- yii2-start-users-module
Модуль пользователей
- yii2-start-themes
Темы для фронтенда и бэкенда приложения.
- yii2-start-site-module
Модуль фронтенда
- yii2-start-rbac-module
Модуль RBAC
- yii2-start-comments-module
Модуль комментариев
- yii2-start-admin-module
Модуль бэкенда
- yii2-start-behaviors
Общий контэйнер поведений приложения
- yii2-start-base
Ядро приложения

Независимые расширения:

- yii2-console-runner-extension
Небольшое расширение которое позволяет запускать консольные команды в фоновом режиме.
- yii2-select2-widget
Обертка плагина [urlhttps://select2.github.io]Select2[/url]
- yii2-fileapi-widget
Обертка плагина FileAPI + дополнительные экшены и поведения для загрузки файлов.
- yii2-users-module
Модуль пользователей
- yii2-rbac-module
RBAC модуль

П.С: Огромная просьба с моей стороны: Добавляйте меня в скайп только по уважительным причинам: предложение о сотрудничестве, разработка проектов, платные консультации, любые другие причины на финансовой основе, серьезные баги в моих расширениях, предложения о сотрудничестве в плане развития этих расширений, другие интересные идеи. Ибо как по мелким вопросам я в любом случае смогу вам ответить и в чате и на форуме. В худшем случае для простых вопросов есть еще почта. Надеюсь на ваше понимание!
Аватара пользователя
NEIRON
Сообщения: 102
Зарегистрирован: 2013.10.23, 07:18

Re: Расширения от vova07 (Vasile Crudu)

Сообщение NEIRON »

vova07 писал(а):Приветствую!
- yii2-start-comments-module
Модуль комментариев
Не подскажите направления для поисках решения данной проблемы: viewtopic.php?p=149500#p150933
Аватара пользователя
NEIRON
Сообщения: 102
Зарегистрирован: 2013.10.23, 07:18

Re: Расширения от vova07 (Vasile Crudu)

Сообщение NEIRON »

При установке расширения yii2-rbac-module возникает ошибка

Код: Выделить всё

neiron@samsung:/var/www/grcc/atlant$ composer require --prefer-dist vova07/yii2-rbac-module "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing vova07/yii2-rbac-module (0.1.0)             
    Downloading: 100%         
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: 100%         
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: 100%         
    [color=#BF0000]Failed to download vova07/yii2-rbac-module from dist: '/var/www/grcc/atlant/vendor/vova07/yii2-rbac-module/38fdf694a2e4d9d51726784769d0f9a1' is not a zip archive.[/color]
    Now trying to download from source
  - Installing vova07/yii2-rbac-module (0.1.0)
    Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f
    11dc36ee0ad97f3265c52d938d57f5d517e9ffa1f is gone (history was rewritten?)
                                                                                                                                                  
  [color=#FF0000][RuntimeException]                                                                                                                              
  Failed to execute git checkout '11dc36ee0ad971f3265c52d938d57f5d57e9ffa1f' -- && git reset --hard '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' --  
  fatal: reference is not a tree: 11dc36ee0ad97f31265c52d938d57f5d57e9ffa1f                   [/color]                                                     
                                                                                                                                                  
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [packages1] ... [packagesN]
При установке других, вроде всё нормально.
zelenin
Сообщения: 10596
Зарегистрирован: 2013.04.20, 11:30

Re: Расширения от vova07 (Vasile Crudu)

Сообщение zelenin »

NEIRON писал(а):При установке расширения yii2-rbac-module возникает ошибка

Код: Выделить всё

neiron@samsung:/var/www/grcc/atlant$ composer require --prefer-dist vova07/yii2-rbac-module "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing vova07/yii2-rbac-module (0.1.0)             
    Downloading: 100%         
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: 100%         
    Invalid zip file, retrying...
  - Installing vova07/yii2-rbac-module (0.1.0)
    Downloading: 100%         
    [color=#BF0000]Failed to download vova07/yii2-rbac-module from dist: '/var/www/grcc/atlant/vendor/vova07/yii2-rbac-module/38fdf694a2e4d9d51726784769d0f9a1' is not a zip archive.[/color]
    Now trying to download from source
  - Installing vova07/yii2-rbac-module (0.1.0)
    Cloning 11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f
    11dc36ee0ad97f3265c52d938d57f5d517e9ffa1f is gone (history was rewritten?)
                                                                                                                                                  
  [color=#FF0000][RuntimeException]                                                                                                                              
  Failed to execute git checkout '11dc36ee0ad971f3265c52d938d57f5d57e9ffa1f' -- && git reset --hard '11dc36ee0ad97f3265c52d938d57f5d57e9ffa1f' --  
  fatal: reference is not a tree: 11dc36ee0ad97f31265c52d938d57f5d57e9ffa1f                   [/color]                                                     
                                                                                                                                                  
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [packages1] ... [packagesN]
 
При установке других, вроде всё нормально.
https://www.google.ru/search?client=ubu ... wAO5joHQBg
Аватара пользователя
NEIRON
Сообщения: 102
Зарегистрирован: 2013.10.23, 07:18

Re: Расширения от vova07 (Vasile Crudu)

Сообщение NEIRON »

Спасибо.
Arroyo
Сообщения: 105
Зарегистрирован: 2014.11.29, 11:24

Re: Расширения от vova07 (Vasile Crudu)

Сообщение Arroyo »

В модуле комментариев написано
Add a new comment-on-able model namespace in yii2-start.domain/backend/comments/models/index/ 
Подскажите где указывать "comment-on-able model namespace"? У меня basic. и нет backend/comments/models/index/
Аватара пользователя
Sergalas
Сообщения: 626
Зарегистрирован: 2015.10.15, 12:39

Re: Расширения от vova07 (Vasile Crudu)

Сообщение Sergalas »

vova07 писал(а):Приветствую!

Решил создать данную тему чтобы можно было держать в определенном контроле свои расширения для Yii.
Она будет дополнятся новыми репозиториями по мере возможности.
Уважаемый vova07 я установил Ваш плагин yii2-start-comments-module отсюда https://github.com/vova07/yii2-start-comments-module
не посмотрев что он ставится на Yii2-Start и естествено не пошел он у меня теперь я пытаюсь его удалить он мне пишит вот такую ошибку
Class vova07\rbac\Bootstrap does not exist вы не подскажите где прописывается подключение к этому плагину вот полная страница с ошибкой

Код: Выделить всё

     in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 415
    406407408409410411412413414415416417418419420421422423424

         * @return array the dependencies of the specified class.
         */
        protected function getDependencies($class)
        {
            if (isset($this->_reflections[$class])) {
                return [$this->_reflections[$class], $this->_dependencies[$class]];
            }
     
            $dependencies = [];
            $reflection = new ReflectionClass($class);
     
            $constructor = $reflection->getConstructor();
            if ($constructor !== null) {
                foreach ($constructor->getParameters() as $param) {
                    if ($param->isDefaultValueAvailable()) {
                        $dependencies[] = $param->getDefaultValue();
                    } else {
                        $c = $param->getClass();
                        $dependencies[] = Instance::of($c === null ? null : $c->getName());

    2. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 415 – ReflectionClass::__construct('vova07\rbac\Bootstrap')
    409410411412413414415416417418419420421

        {
            if (isset($this->_reflections[$class])) {
                return [$this->_reflections[$class], $this->_dependencies[$class]];
            }
     
            $dependencies = [];
            $reflection = new ReflectionClass($class);
     
            $constructor = $reflection->getConstructor();
            if ($constructor !== null) {
                foreach ($constructor->getParameters() as $param) {
                    if ($param->isDefaultValueAvailable()) {
                        $dependencies[] = $param->getDefaultValue();

    3. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 358 – yii\di\Container::getDependencies('vova07\rbac\Bootstrap')
    352353354355356357358359360361362363364

         * @param array $config configurations to be applied to the new instance
         * @return object the newly created instance of the specified class
         */
        protected function build($class, $params, $config)
        {
            /* @var $reflection ReflectionClass */
            list ($reflection, $dependencies) = $this->getDependencies($class);
     
            foreach ($params as $index => $param) {
                $dependencies[$index] = $param;
            }
     
            $dependencies = $this->resolveDependencies($dependencies, $reflection);

    4. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 151 – yii\di\Container::build('vova07\rbac\Bootstrap', [], [])
    145146147148149150151152153154155156157

        public function get($class, $params = [], $config = [])
        {
            if (isset($this->_singletons[$class])) {
                // singleton
                return $this->_singletons[$class];
            } elseif (!isset($this->_definitions[$class])) {
                return $this->build($class, $params, $config);
            }
     
            $definition = $this->_definitions[$class];
     
            if (is_callable($definition, true)) {
                $params = $this->resolveDependencies($this->mergeParams($class, $params));

    5. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\BaseYii.php at line 340 – yii\di\Container::get('vova07\rbac\Bootstrap', [])
    334335336337338339340341342343344345346

         * @throws InvalidConfigException if the configuration is invalid.
         * @see \yii\di\Container
         */
        public static function createObject($type, array $params = [])
        {
            if (is_string($type)) {
                return static::$container->get($type, $params);
            } elseif (is_array($type) && isset($type['class'])) {
                $class = $type['class'];
                unset($type['class']);
                return static::$container->get($class, $params, $type);
            } elseif (is_callable($type, true)) {
                return call_user_func($type, $params);

    6. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 288 – yii\BaseYii::createObject('vova07\rbac\Bootstrap')
    282283284285286287288289290291292293294

                if (!empty($extension['alias'])) {
                    foreach ($extension['alias'] as $name => $path) {
                        Yii::setAlias($name, $path);
                    }
                }
                if (isset($extension['bootstrap'])) {
                    $component = Yii::createObject($extension['bootstrap']);
                    if ($component instanceof BootstrapInterface) {
                        Yii::trace("Bootstrap with " . get_class($component) . '::bootstrap()', __METHOD__);
                        $component->bootstrap($this);
                    } else {
                        Yii::trace("Bootstrap with " . get_class($component), __METHOD__);
                    }

    7. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\web\Application.php at line 63 – yii\base\Application::bootstrap()
    57585960616263646566676869

        protected function bootstrap()
        {
            $request = $this->getRequest();
            Yii::setAlias('@webroot', dirname($request->getScriptFile()));
            Yii::setAlias('@web', $request->getBaseUrl());
     
            parent::bootstrap();
        }
     
        /**
         * Handles the specified request.
         * @param Request $request the request to be handled
         * @return Response the resulting response

    8. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 267 – yii\web\Application::bootstrap()
    261262263264265266267268269270271272273

        /**
         * @inheritdoc
         */
        public function init()
        {
            $this->state = self::STATE_INIT;
            $this->bootstrap();
        }
     
        /**
         * Initializes extensions and executes bootstrap components.
         * This method is called by [[init()]] after the application has been fully configured.
         * If you override this method, make sure you also call the parent implementation.

    9. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Object.php at line 107 – yii\base\Application::init()
    101102103104105106107108109110111112113

         */
        public function __construct($config = [])
        {
            if (!empty($config)) {
                Yii::configure($this, $config);
            }
            $this->init();
        }
     
        /**
         * Initializes the object.
         * This method is invoked at the end of the constructor after the object is initialized with the
         * given configuration.

    10. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 206 – yii\base\Object::__construct(['language' => 'ru-RU', 'components' => ['cache' => ['class' => 'yii\caching\FileCache'], 'authManager' => ['class' => 'yii\rbac\PhpManager', 'defaultRoles' => ['user', 'moder', 'admin'], 'itemFile' => '@common/components/rbac/items.ph...', 'assignmentFile' => '@common/components/rbac/assignme...', ...], 'urlManager' => ['class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false], 'language' => 'ru-RU', ...], 'id' => 'app-frontend', 'bootstrap' => ['log', 'debug', 'gii'], ...])
    200201202203204205206207208209210211212

            $this->state = self::STATE_BEGIN;
     
            $this->preInit($config);
     
            $this->registerErrorHandler($config);
     
            Component::__construct($config);
        }
     
        /**
         * Pre-initializes the application.
         * This method is called at the beginning of the application constructor.
         * It initializes several important application properties.

    11. in E:\serv\OpenServer\domains\advanced.lc\frontend\web\index.php at line 17 – yii\base\Application::__construct(['language' => 'ru-RU', 'vendorPath' => 'E:\serv\OpenServer\domains\advan...', 'components' => ['cache' => ['class' => 'yii\caching\FileCache'], 'authManager' => ['class' => 'yii\rbac\PhpManager', 'defaultRoles' => ['user', 'moder', 'admin'], 'itemFile' => '@common/components/rbac/items.ph...', 'assignmentFile' => '@common/components/rbac/assignme...', ...], 'urlManager' => ['class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false], 'language' => 'ru-RU', ...], 'id' => 'app-frontend', ...])
    1112131415161718

        require(__DIR__ . '/../../common/config/main.php'),
        require(__DIR__ . '/../../common/config/main-local.php'),
        require(__DIR__ . '/../config/main.php'),
        require(__DIR__ . '/../config/main-local.php')
    );
     
    $application = new yii\web\Application($config);
    $application->run();

$_SERVER = [
    'REDIRECT_STATUS' => '200',
    'HTTP_HOST' => 'advanced.lc',
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0',
    'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5',
    'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
    'HTTP_DNT' => '1',
    'HTTP_COOKIE' => '_identity=ff7177dcf7dd328c09d83d2e5a1a01093f55d2fb6a050d815edbf5eab43b7c1ba%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A46%3A%22%5B1%2C%22Jqvpk7WKp3o9HoJ-HBrJJJJv7Z02hUzx%22%2C2592000%5D%22%3B%7D; PHPSESSID=of00erj0iuderghh8d5f2cptr2; _csrf=4fd8729ff9bb5f119ca9c3145f8bc46acf375b28a2421b829af40f1d327576dea%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22azu-Uu5kHzu1ouuECRsvs5mkgYf5c3rj%22%3B%7D',
    'HTTP_CONNECTION' => 'keep-alive',
    'PATH' => 'e:\\serv\\openserver\\modules\\php\\PHP-5.6\\ext;e:\\serv\\openserver\\modules\\php\\PHP-5.6\\pear;e:\\serv\\openserver\\modules\\php\\PHP-5.6\\pear\\bin;e:\\serv\\openserver\\modules\\php\\PHP-5.6;e:\\serv\\openserver\\modules\\imagemagick;e:\\serv\\openserver\\modules\\wget\\bin;e:\\serv\\openserver\\modules\\git;e:\\serv\\openserver\\modules\\git\\bin;e:\\serv\\openserver\\modules\\git\\mingw\\bin;e:\\serv\\openserver\\modules\\git\\cmd;e:\\serv\\openserver\\modules\\database\\MySQL-5.5\\bin;e:\\serv\\openserver\\modules\\http\\Apache-2.4\\bin;e:\\serv\\openserver\\modules\\http\\Apache-2.4;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\Wbem;C:\\WINDOWS\\SysWOW64;E:\\serv\\OpenServer\\modules\\php\\PHP-5.6;E:\\serv\\Git\\cmd',
    'SystemRoot' => 'C:\\WINDOWS',
    'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe',
    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
    'WINDIR' => 'C:\\WINDOWS',
    'SERVER_SIGNATURE' => '',
    'SERVER_SOFTWARE' => 'Apache/2.4.16 (Win32)',
    'SERVER_NAME' => 'advanced.lc',
    'SERVER_ADDR' => '127.0.0.1',
    'SERVER_PORT' => '80',
    'REMOTE_ADDR' => '127.0.0.1',
    'DOCUMENT_ROOT' => 'E:/serv/OpenServer/domains/advanced.lc',
    'REQUEST_SCHEME' => 'http',
    'CONTEXT_PREFIX' => '',
    'CONTEXT_DOCUMENT_ROOT' => 'E:/serv/OpenServer/domains/advanced.lc',
    'SERVER_ADMIN' => '[no address given]',
    'SCRIPT_FILENAME' => 'E:/serv/OpenServer/domains/advanced.lc/frontend/web/index.php',
    'REMOTE_PORT' => '7882',
    'REDIRECT_URL' => '/',
    'GATEWAY_INTERFACE' => 'CGI/1.1',
    'SERVER_PROTOCOL' => 'HTTP/1.1',
    'REQUEST_METHOD' => 'GET',
    'QUERY_STRING' => '',
    'REQUEST_URI' => '/',
    'SCRIPT_NAME' => '/frontend/web/index.php',
    'PHP_SELF' => '/frontend/web/index.php',
    'REQUEST_TIME_FLOAT' => 1452617549.506,
    'REQUEST_TIME' => 1452617549,
    'argv' => [],
    'argc' => 0,
];

$_COOKIE = [
    '_identity' => 'ff7177dcf7dd328c09d83d2e5a1a01093f55d2fb6a050d815edbf5eab43b7c1ba:2:{i:0;s:9:"_identity";i:1;s:46:"[1,"Jqvpk7WKp3o9HoJ-HBrJJJJv7Z02hUzx",2592000]";}',
    'PHPSESSID' => 'of00erj0iuderghh8d5f2cptr2',
    '_csrf' => '4fd8729ff9bb5f119ca9c3145f8bc46acf375b28a2421b829af40f1d327576dea:2:{i:0;s:5:"_csrf";i:1;s:32:"azu-Uu5kHzu1ouuECRsvs5mkgYf5c3rj";}',
];

Аватара пользователя
vova07
Сообщения: 1004
Зарегистрирован: 2012.11.29, 14:52
Откуда: Chisinau, Moldova

Re: Расширения от vova07 (Vasile Crudu)

Сообщение vova07 »

Sergalas писал(а):
vova07 писал(а):Приветствую!

Решил создать данную тему чтобы можно было держать в определенном контроле свои расширения для Yii.
Она будет дополнятся новыми репозиториями по мере возможности.
Уважаемый vova07 я установил Ваш плагин yii2-start-comments-module отсюда https://github.com/vova07/yii2-start-comments-module
не посмотрев что он ставится на Yii2-Start и естествено не пошел он у меня теперь я пытаюсь его удалить он мне пишит вот такую ошибку
Class vova07\rbac\Bootstrap does not exist вы не подскажите где прописывается подключение к этому плагину вот полная страница с ошибкой

Код: Выделить всё

     in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 415
    406407408409410411412413414415416417418419420421422423424

         * @return array the dependencies of the specified class.
         */
        protected function getDependencies($class)
        {
            if (isset($this->_reflections[$class])) {
                return [$this->_reflections[$class], $this->_dependencies[$class]];
            }
     
            $dependencies = [];
            $reflection = new ReflectionClass($class);
     
            $constructor = $reflection->getConstructor();
            if ($constructor !== null) {
                foreach ($constructor->getParameters() as $param) {
                    if ($param->isDefaultValueAvailable()) {
                        $dependencies[] = $param->getDefaultValue();
                    } else {
                        $c = $param->getClass();
                        $dependencies[] = Instance::of($c === null ? null : $c->getName());

    2. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 415 – ReflectionClass::__construct('vova07\rbac\Bootstrap')
    409410411412413414415416417418419420421

        {
            if (isset($this->_reflections[$class])) {
                return [$this->_reflections[$class], $this->_dependencies[$class]];
            }
     
            $dependencies = [];
            $reflection = new ReflectionClass($class);
     
            $constructor = $reflection->getConstructor();
            if ($constructor !== null) {
                foreach ($constructor->getParameters() as $param) {
                    if ($param->isDefaultValueAvailable()) {
                        $dependencies[] = $param->getDefaultValue();

    3. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 358 – yii\di\Container::getDependencies('vova07\rbac\Bootstrap')
    352353354355356357358359360361362363364

         * @param array $config configurations to be applied to the new instance
         * @return object the newly created instance of the specified class
         */
        protected function build($class, $params, $config)
        {
            /* @var $reflection ReflectionClass */
            list ($reflection, $dependencies) = $this->getDependencies($class);
     
            foreach ($params as $index => $param) {
                $dependencies[$index] = $param;
            }
     
            $dependencies = $this->resolveDependencies($dependencies, $reflection);

    4. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\di\Container.php at line 151 – yii\di\Container::build('vova07\rbac\Bootstrap', [], [])
    145146147148149150151152153154155156157

        public function get($class, $params = [], $config = [])
        {
            if (isset($this->_singletons[$class])) {
                // singleton
                return $this->_singletons[$class];
            } elseif (!isset($this->_definitions[$class])) {
                return $this->build($class, $params, $config);
            }
     
            $definition = $this->_definitions[$class];
     
            if (is_callable($definition, true)) {
                $params = $this->resolveDependencies($this->mergeParams($class, $params));

    5. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\BaseYii.php at line 340 – yii\di\Container::get('vova07\rbac\Bootstrap', [])
    334335336337338339340341342343344345346

         * @throws InvalidConfigException if the configuration is invalid.
         * @see \yii\di\Container
         */
        public static function createObject($type, array $params = [])
        {
            if (is_string($type)) {
                return static::$container->get($type, $params);
            } elseif (is_array($type) && isset($type['class'])) {
                $class = $type['class'];
                unset($type['class']);
                return static::$container->get($class, $params, $type);
            } elseif (is_callable($type, true)) {
                return call_user_func($type, $params);

    6. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 288 – yii\BaseYii::createObject('vova07\rbac\Bootstrap')
    282283284285286287288289290291292293294

                if (!empty($extension['alias'])) {
                    foreach ($extension['alias'] as $name => $path) {
                        Yii::setAlias($name, $path);
                    }
                }
                if (isset($extension['bootstrap'])) {
                    $component = Yii::createObject($extension['bootstrap']);
                    if ($component instanceof BootstrapInterface) {
                        Yii::trace("Bootstrap with " . get_class($component) . '::bootstrap()', __METHOD__);
                        $component->bootstrap($this);
                    } else {
                        Yii::trace("Bootstrap with " . get_class($component), __METHOD__);
                    }

    7. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\web\Application.php at line 63 – yii\base\Application::bootstrap()
    57585960616263646566676869

        protected function bootstrap()
        {
            $request = $this->getRequest();
            Yii::setAlias('@webroot', dirname($request->getScriptFile()));
            Yii::setAlias('@web', $request->getBaseUrl());
     
            parent::bootstrap();
        }
     
        /**
         * Handles the specified request.
         * @param Request $request the request to be handled
         * @return Response the resulting response

    8. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 267 – yii\web\Application::bootstrap()
    261262263264265266267268269270271272273

        /**
         * @inheritdoc
         */
        public function init()
        {
            $this->state = self::STATE_INIT;
            $this->bootstrap();
        }
     
        /**
         * Initializes extensions and executes bootstrap components.
         * This method is called by [[init()]] after the application has been fully configured.
         * If you override this method, make sure you also call the parent implementation.

    9. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Object.php at line 107 – yii\base\Application::init()
    101102103104105106107108109110111112113

         */
        public function __construct($config = [])
        {
            if (!empty($config)) {
                Yii::configure($this, $config);
            }
            $this->init();
        }
     
        /**
         * Initializes the object.
         * This method is invoked at the end of the constructor after the object is initialized with the
         * given configuration.

    10. in E:\serv\OpenServer\domains\advanced.lc\vendor\yiisoft\yii2\base\Application.php at line 206 – yii\base\Object::__construct(['language' => 'ru-RU', 'components' => ['cache' => ['class' => 'yii\caching\FileCache'], 'authManager' => ['class' => 'yii\rbac\PhpManager', 'defaultRoles' => ['user', 'moder', 'admin'], 'itemFile' => '@common/components/rbac/items.ph...', 'assignmentFile' => '@common/components/rbac/assignme...', ...], 'urlManager' => ['class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false], 'language' => 'ru-RU', ...], 'id' => 'app-frontend', 'bootstrap' => ['log', 'debug', 'gii'], ...])
    200201202203204205206207208209210211212

            $this->state = self::STATE_BEGIN;
     
            $this->preInit($config);
     
            $this->registerErrorHandler($config);
     
            Component::__construct($config);
        }
     
        /**
         * Pre-initializes the application.
         * This method is called at the beginning of the application constructor.
         * It initializes several important application properties.

    11. in E:\serv\OpenServer\domains\advanced.lc\frontend\web\index.php at line 17 – yii\base\Application::__construct(['language' => 'ru-RU', 'vendorPath' => 'E:\serv\OpenServer\domains\advan...', 'components' => ['cache' => ['class' => 'yii\caching\FileCache'], 'authManager' => ['class' => 'yii\rbac\PhpManager', 'defaultRoles' => ['user', 'moder', 'admin'], 'itemFile' => '@common/components/rbac/items.ph...', 'assignmentFile' => '@common/components/rbac/assignme...', ...], 'urlManager' => ['class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false], 'language' => 'ru-RU', ...], 'id' => 'app-frontend', ...])
    1112131415161718

        require(__DIR__ . '/../../common/config/main.php'),
        require(__DIR__ . '/../../common/config/main-local.php'),
        require(__DIR__ . '/../config/main.php'),
        require(__DIR__ . '/../config/main-local.php')
    );
     
    $application = new yii\web\Application($config);
    $application->run();

$_SERVER = [
    'REDIRECT_STATUS' => '200',
    'HTTP_HOST' => 'advanced.lc',
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0',
    'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.5',
    'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
    'HTTP_DNT' => '1',
    'HTTP_COOKIE' => '_identity=ff7177dcf7dd328c09d83d2e5a1a01093f55d2fb6a050d815edbf5eab43b7c1ba%3A2%3A%7Bi%3A0%3Bs%3A9%3A%22_identity%22%3Bi%3A1%3Bs%3A46%3A%22%5B1%2C%22Jqvpk7WKp3o9HoJ-HBrJJJJv7Z02hUzx%22%2C2592000%5D%22%3B%7D; PHPSESSID=of00erj0iuderghh8d5f2cptr2; _csrf=4fd8729ff9bb5f119ca9c3145f8bc46acf375b28a2421b829af40f1d327576dea%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22azu-Uu5kHzu1ouuECRsvs5mkgYf5c3rj%22%3B%7D',
    'HTTP_CONNECTION' => 'keep-alive',
    'PATH' => 'e:\\serv\\openserver\\modules\\php\\PHP-5.6\\ext;e:\\serv\\openserver\\modules\\php\\PHP-5.6\\pear;e:\\serv\\openserver\\modules\\php\\PHP-5.6\\pear\\bin;e:\\serv\\openserver\\modules\\php\\PHP-5.6;e:\\serv\\openserver\\modules\\imagemagick;e:\\serv\\openserver\\modules\\wget\\bin;e:\\serv\\openserver\\modules\\git;e:\\serv\\openserver\\modules\\git\\bin;e:\\serv\\openserver\\modules\\git\\mingw\\bin;e:\\serv\\openserver\\modules\\git\\cmd;e:\\serv\\openserver\\modules\\database\\MySQL-5.5\\bin;e:\\serv\\openserver\\modules\\http\\Apache-2.4\\bin;e:\\serv\\openserver\\modules\\http\\Apache-2.4;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\system32\\Wbem;C:\\WINDOWS\\SysWOW64;E:\\serv\\OpenServer\\modules\\php\\PHP-5.6;E:\\serv\\Git\\cmd',
    'SystemRoot' => 'C:\\WINDOWS',
    'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe',
    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
    'WINDIR' => 'C:\\WINDOWS',
    'SERVER_SIGNATURE' => '',
    'SERVER_SOFTWARE' => 'Apache/2.4.16 (Win32)',
    'SERVER_NAME' => 'advanced.lc',
    'SERVER_ADDR' => '127.0.0.1',
    'SERVER_PORT' => '80',
    'REMOTE_ADDR' => '127.0.0.1',
    'DOCUMENT_ROOT' => 'E:/serv/OpenServer/domains/advanced.lc',
    'REQUEST_SCHEME' => 'http',
    'CONTEXT_PREFIX' => '',
    'CONTEXT_DOCUMENT_ROOT' => 'E:/serv/OpenServer/domains/advanced.lc',
    'SERVER_ADMIN' => '[no address given]',
    'SCRIPT_FILENAME' => 'E:/serv/OpenServer/domains/advanced.lc/frontend/web/index.php',
    'REMOTE_PORT' => '7882',
    'REDIRECT_URL' => '/',
    'GATEWAY_INTERFACE' => 'CGI/1.1',
    'SERVER_PROTOCOL' => 'HTTP/1.1',
    'REQUEST_METHOD' => 'GET',
    'QUERY_STRING' => '',
    'REQUEST_URI' => '/',
    'SCRIPT_NAME' => '/frontend/web/index.php',
    'PHP_SELF' => '/frontend/web/index.php',
    'REQUEST_TIME_FLOAT' => 1452617549.506,
    'REQUEST_TIME' => 1452617549,
    'argv' => [],
    'argc' => 0,
];

$_COOKIE = [
    '_identity' => 'ff7177dcf7dd328c09d83d2e5a1a01093f55d2fb6a050d815edbf5eab43b7c1ba:2:{i:0;s:9:"_identity";i:1;s:46:"[1,"Jqvpk7WKp3o9HoJ-HBrJJJJv7Z02hUzx",2592000]";}',
    'PHPSESSID' => 'of00erj0iuderghh8d5f2cptr2',
    '_csrf' => '4fd8729ff9bb5f119ca9c3145f8bc46acf375b28a2421b829af40f1d327576dea:2:{i:0;s:5:"_csrf";i:1;s:32:"azu-Uu5kHzu1ouuECRsvs5mkgYf5c3rj";}',
];

Извиняюсь за поздний ответ. Зависимость прописана в другом расширении: https://github.com/vova07/yii2-start-us ... r.json#L21 от которого зависит этот модуль. Таким образом оно должно подтянутся автоматически.
Аватара пользователя
Sergalas
Сообщения: 626
Зарегистрирован: 2015.10.15, 12:39

Re: Расширения от vova07 (Vasile Crudu)

Сообщение Sergalas »

Спасибо я решил вопрос координально, путем полного стирания
Ответить