├── .gitignore ├── .scrutinizer.yml ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── Module.php ├── Permission.php ├── README.md ├── composer.json ├── composer.lock ├── forms └── CommentCreateForm.php ├── interfaces └── CommentatorInterface.php ├── migrations ├── m150106_122229_comments.php └── m151005_165040_comment_from.php ├── models ├── Comment.php └── queries │ └── CommentQuery.php ├── phpunit.xml.dist ├── rbac └── ItsMyComment.php ├── tests ├── unit │ ├── .gitignore │ ├── TestCase.php │ ├── bootstrap.php │ ├── comments │ │ └── MainTest.php │ ├── config │ │ ├── .gitignore │ │ └── main.php │ ├── models │ │ └── User.php │ └── runtime │ │ └── .gitignore └── web │ ├── README.md │ ├── assets │ └── AppAssetBundle.php │ ├── config │ ├── console.php │ ├── db.php │ └── web.php │ ├── controllers │ ├── DemoController.php │ └── SignController.php │ ├── migrations │ └── m151005_165039_user.php │ ├── models │ └── User.php │ ├── runtime │ └── .gitignore │ ├── views │ ├── demo │ │ └── index.php │ └── layouts │ │ └── main.php │ ├── web │ ├── assets │ │ └── .gitignore │ └── index.php │ └── yii └── widgets ├── CommentFormAsset.php ├── CommentFormWidget.php ├── CommentListAsset.php ├── CommentListWidget.php ├── _assets ├── comment-form.css ├── comment-list.css └── comment-list.js └── views ├── comment-form.php └── comment-list.php /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /vendor 3 | /coverage 4 | -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/LICENSE -------------------------------------------------------------------------------- /Module.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/Module.php -------------------------------------------------------------------------------- /Permission.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/Permission.php -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/composer.lock -------------------------------------------------------------------------------- /forms/CommentCreateForm.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/forms/CommentCreateForm.php -------------------------------------------------------------------------------- /interfaces/CommentatorInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/interfaces/CommentatorInterface.php -------------------------------------------------------------------------------- /migrations/m150106_122229_comments.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/migrations/m150106_122229_comments.php -------------------------------------------------------------------------------- /migrations/m151005_165040_comment_from.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/migrations/m151005_165040_comment_from.php -------------------------------------------------------------------------------- /models/Comment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/models/Comment.php -------------------------------------------------------------------------------- /models/queries/CommentQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/models/queries/CommentQuery.php -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /rbac/ItsMyComment.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/rbac/ItsMyComment.php -------------------------------------------------------------------------------- /tests/unit/.gitignore: -------------------------------------------------------------------------------- 1 | runtime/cache/* -------------------------------------------------------------------------------- /tests/unit/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/unit/TestCase.php -------------------------------------------------------------------------------- /tests/unit/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/unit/bootstrap.php -------------------------------------------------------------------------------- /tests/unit/comments/MainTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/unit/comments/MainTest.php -------------------------------------------------------------------------------- /tests/unit/config/.gitignore: -------------------------------------------------------------------------------- 1 | main-local.php -------------------------------------------------------------------------------- /tests/unit/config/main.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/unit/config/main.php -------------------------------------------------------------------------------- /tests/unit/models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/unit/models/User.php -------------------------------------------------------------------------------- /tests/unit/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/web/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/README.md -------------------------------------------------------------------------------- /tests/web/assets/AppAssetBundle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/assets/AppAssetBundle.php -------------------------------------------------------------------------------- /tests/web/config/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/config/console.php -------------------------------------------------------------------------------- /tests/web/config/db.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/config/db.php -------------------------------------------------------------------------------- /tests/web/config/web.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/config/web.php -------------------------------------------------------------------------------- /tests/web/controllers/DemoController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/controllers/DemoController.php -------------------------------------------------------------------------------- /tests/web/controllers/SignController.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/controllers/SignController.php -------------------------------------------------------------------------------- /tests/web/migrations/m151005_165039_user.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/migrations/m151005_165039_user.php -------------------------------------------------------------------------------- /tests/web/models/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/models/User.php -------------------------------------------------------------------------------- /tests/web/runtime/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/web/views/demo/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/views/demo/index.php -------------------------------------------------------------------------------- /tests/web/views/layouts/main.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/views/layouts/main.php -------------------------------------------------------------------------------- /tests/web/web/assets/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /tests/web/web/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/web/index.php -------------------------------------------------------------------------------- /tests/web/yii: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/tests/web/yii -------------------------------------------------------------------------------- /widgets/CommentFormAsset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/CommentFormAsset.php -------------------------------------------------------------------------------- /widgets/CommentFormWidget.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/CommentFormWidget.php -------------------------------------------------------------------------------- /widgets/CommentListAsset.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/CommentListAsset.php -------------------------------------------------------------------------------- /widgets/CommentListWidget.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/CommentListWidget.php -------------------------------------------------------------------------------- /widgets/_assets/comment-form.css: -------------------------------------------------------------------------------- 1 | .comment-form { margin-top: 20px; } 2 | -------------------------------------------------------------------------------- /widgets/_assets/comment-list.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/_assets/comment-list.css -------------------------------------------------------------------------------- /widgets/_assets/comment-list.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/_assets/comment-list.js -------------------------------------------------------------------------------- /widgets/views/comment-form.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/views/comment-form.php -------------------------------------------------------------------------------- /widgets/views/comment-list.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rmrevin/yii2-comments/HEAD/widgets/views/comment-list.php --------------------------------------------------------------------------------