rating-bundle:允许评分元素

时间:2021-05-25 13:38:20
【文件属性】:
文件名称:rating-bundle:允许评分元素
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-25 13:38:20
PHP RatingBundle 此捆绑包使您可以在网页中包括对任何类型元素的评级。 正在建设中,因此请不要使用此捆绑包:) 安装 将依赖项添加到您的composer.json : composer require bitheater/rating-bundle 在您的AppKernel.php文件中引导捆绑包: new Bitheater\RatingBundle\BitheaterRatingBundle() 配置捆绑软件(目前,我们仅支持MySQL,但支持其他数据存储应该很简单!): bitheater_rating : driver : orm model_class : MyBundle\Entity\Vote 创建投票类,将基本投票扩展为一个: use Bitheater \ RatingBundle \ Model \ Vote as RatingVo
【文件预览】:
rating-bundle-master
----.gitignore(35B)
----Manager()
--------Exception()
--------DefaultRatingManager.php(2KB)
--------RatingManager.php(1KB)
----Event()
--------VoteAddedEvent.php(458B)
--------DoctrineVoteSubscriber.php(917B)
----Resources()
--------config()
----LICENSE(1KB)
----composer.json(584B)
----Model()
--------Vote.php(1KB)
----VoteEvents.php(110B)
----BitheaterRatingBundle.php(1008B)
----README.md(1KB)
----Repository()
--------VoteRepository.php(333B)
--------Doctrine()
----DependencyInjection()
--------Configuration.php(1KB)
--------BitheaterRatingExtension.php(1KB)

网友评论