Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.0' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjeev Papnoi committed Mar 30, 2020
2 parents a911fd9 + c146ddd commit 72b0856
Show file tree
Hide file tree
Showing 11 changed files with 750 additions and 19 deletions.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: 🐛 Bug Report
about: Report errors and problems

---

**Description**
<!-- A clear and concise description of the problem. -->

**How to reproduce**
<!-- Code and/or config needed to reproduce the problem. -->

**Possible Solution**
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->

**Additional context**
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/Feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: 🚀 Feature Request
about: RFC and ideas for new features and improvements

---

**Description**
<!-- A clear and concise description of the new feature. -->

**Example**
<!-- A simple example of the new feature in action (include PHP code, YAML config, etc.)
If the new feature changes an existing feature, include a simple before/after comparison. -->
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/Support_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: ⛔ Support Question
about: Visit https://support.uvdesk.com/ to learn more about how the uvdesk team can assist you

---

We use GitHub issues only to discuss about uvdesk bugs and new features. For customizations and extended support:

- Contact us at support@uvdesk.com
- Visit official support website (https://support.uvdesk.com/en/)
- Visit our community forums (https://forums.uvdesk.com)

Thanks!
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!--
Thank you for contributing to UVDesk! Please fill out this description template to help us to process your pull request.
-->

### 1. Why is this change necessary?


### 2. What does this change do, exactly?


### 3. Please link to the relevant issues (if any).
8 changes: 8 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Security Policy
===============

⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.

If you have found a security issue in Uvdesk, please send the details to support@uvdesk.com and don't disclose it publicly until we can provide a fix for it.

Thanks!
34 changes: 34 additions & 0 deletions API/TicketTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

namespace Webkul\UVDesk\ApiBundle\API;

use Webkul\TicketBundle\Entity\Ticket;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\EventDispatcher\GenericEvent;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Webkul\UVDesk\CoreFrameworkBundle\Workflow\Events as CoreWorkflowEvents;

class TicketTypes extends Controller
{
/**
* Getting listing of all ticket types
*
* @param Request $request
* @return void
*/
public function ticketTypeList(Request $request)
{
$json = [];
$entityManager = $this->getDoctrine()->getManager();
$ticketTypes = $entityManager->createQueryBuilder()
->select("TT")
->from('UVDeskCoreFrameworkBundle:TicketType', 'TT')
->Where('TT.isActive = 1')
->getQuery()->getArrayResult();

return new JsonResponse($ticketTypes);
}
}

Loading

0 comments on commit 72b0856

Please sign in to comment.