1000 search results

// ... lines 1 - 5
use ApiPlatform\Core\Serializer\AbstractItemNormalizer;
// ... lines 7 - 9
class CheeseListingInputDataTransformer implements DataTransformerInterface
{
// ... lines 12 - 14
public function transform($input, string $to, array $context = [])
{
if (isset($context[AbstractItemNormalizer::OBJECT_TO_POPULATE])) {
// ... lines 18 - 20
}
// ... lines 22 - 28
}
// ... lines 30 - 39
}
See Code Block in Script
51 lines | src/DataProvider/DailyStatsProvider.php
// ... lines 1 - 5
use ApiPlatform\Core\DataProvider\ContextAwareCollectionDataProviderInterface;
// ... lines 7 - 14
class DailyStatsProvider implements ContextAwareCollectionDataProviderInterface, ItemDataProviderInterface, RestrictedDataProviderInterface
{
// ... lines 17 - 49
}
See Code Block in Script
291 lines | src/Entity/User.php
// ... lines 1 - 5
use ApiPlatform\Core\Annotation\ApiProperty;
// ... lines 7 - 42
class User implements UserInterface
{
// ... lines 45 - 210
/**
* @ApiProperty(readableLink=true)
// ... lines 213 - 215
*/
public function getPublishedCheeseListings(): Collection
{
// ... lines 219 - 221
}
// ... lines 223 - 289
}
See Code Block in Script
18 lines | src/DataProvider/DailyStatsProvider.php
// ... lines 1 - 4
use ApiPlatform\Core\DataProvider\CollectionDataProviderInterface;
use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface;
class DailyStatsProvider implements CollectionDataProviderInterface, RestrictedDataProviderInterface
{
// ... lines 10 - 16
}
See Code Block in Script
29 lines | src/Entity/DailyStats.php
// ... lines 1 - 5
use ApiPlatform\Core\Action\NotFoundAction;
/**
* @ApiResource(
* itemOperations={
* "get"={
* "method"="GET",
* "controller"=NotFoundAction::class,
* "read"=false,
* "output"=false,
* },
* },
// ... line 18
* )
*/
class DailyStats
{
// ... lines 23 - 27
}
See Code Block in Script
33 lines | src/Entity/DailyStats.php
// ... lines 1 - 4
use ApiPlatform\Core\Annotation\ApiProperty;
// ... lines 6 - 21
class DailyStats
{
/**
* @ApiProperty(identifier=true)
*/
public $date;
// ... lines 28 - 31
}
See Code Block in Script
18 lines | src/Entity/DailyStats.php
// ... lines 1 - 4
use ApiPlatform\Core\Annotation\ApiResource;
/**
* @ApiResource()
*/
class DailyStats
{
// ... lines 12 - 16
}
See Code Block in Script
45 lines | src/DataProvider/UserDataProvider.php
// ... lines 1 - 6
use ApiPlatform\Core\DataProvider\DenormalizedIdentifiersAwareItemDataProviderInterface;
// ... lines 8 - 11
class UserDataProvider implements ContextAwareCollectionDataProviderInterface, DenormalizedIdentifiersAwareItemDataProviderInterface, RestrictedDataProviderInterface
{
// ... lines 14 - 43
}
See Code Block in Script
49 lines | src/DataProvider/UserDataProvider.php
// ... lines 1 - 7
use ApiPlatform\Core\DataProvider\ItemDataProviderInterface;
// ... lines 9 - 12
class UserDataProvider implements ContextAwareCollectionDataProviderInterface, DenormalizedIdentifiersAwareItemDataProviderInterface, RestrictedDataProviderInterface
{
// ... line 15
private $itemDataProvider;
// ... lines 17 - 18
public function __construct(CollectionDataProviderInterface $collectionDataProvider, ItemDataProviderInterface $itemDataProvider, Security $security)
{
// ... line 21
$this->itemDataProvider = $itemDataProvider;
// ... line 23
}
// ... lines 25 - 47
}
See Code Block in Script
29 lines | src/DataProvider/UserDataProvider.php
// ... lines 1 - 4
use ApiPlatform\Core\DataProvider\CollectionDataProviderInterface;
// ... lines 6 - 9
class UserDataProvider implements ContextAwareCollectionDataProviderInterface, RestrictedDataProviderInterface
{
private $collectionDataProvider;
public function __construct(CollectionDataProviderInterface $collectionDataProvider)
{
$this->collectionDataProvider = $collectionDataProvider;
}
// ... lines 18 - 27
}
See Code Block in Script
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
class CheeseListingDataPersister implements DataPersisterInterface
{
// ... lines 9 - 10
public function __construct(DataPersisterInterface $decoratedDataPersister)
{
// ... line 13
}
// ... lines 15 - 26
}
See Code Block in Script
55 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
// ... lines 6 - 9
class UserDataPersister implements DataPersisterInterface
{
// ... lines 12 - 53
}
See Code Block in Script
56 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\ContextAwareDataPersisterInterface;
// ... lines 6 - 10
class UserDataPersister implements ContextAwareDataPersisterInterface
{
// ... lines 13 - 54
}
See Code Block in Script
45 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
// ... lines 6 - 8
class UserDataPersister implements DataPersisterInterface
{
// ... lines 11 - 13
public function __construct(DataPersisterInterface $decoratedDataPersister, UserPasswordEncoderInterface $userPasswordEncoder)
{
// ... lines 16 - 17
}
// ... lines 19 - 43
}
See Code Block in Script
45 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
// ... lines 6 - 8
class UserDataPersister implements DataPersisterInterface
{
private $decoratedDataPersister;
// ... lines 12 - 13
public function __construct(DataPersisterInterface $decoratedDataPersister, UserPasswordEncoderInterface $userPasswordEncoder)
{
$this->decoratedDataPersister = $decoratedDataPersister;
// ... line 17
}
// ... lines 19 - 43
}
See Code Block in Script
45 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
// ... lines 6 - 8
class UserDataPersister implements DataPersisterInterface
{
// ... lines 11 - 13
public function __construct(DataPersisterInterface $decoratedDataPersister, UserPasswordEncoderInterface $userPasswordEncoder)
{
// ... lines 16 - 17
}
// ... lines 19 - 43
}
See Code Block in Script
41 lines | src/Controller/ProductController.php
// ... lines 1 - 5
use ApiPlatform\Core\Api\IriConverterInterface;
// ... lines 7 - 11
class ProductController extends AbstractController
{
// ... lines 15 - 25
public function showCategory(Category $category, IriConverterInterface $iriConverter): Response
// ... lines 27 - 39
}
See Code Block in Script
24 lines | src/DataPersister/UserDataPersister.php
// ... lines 1 - 4
use ApiPlatform\Core\DataPersister\DataPersisterInterface;
class UserDataPersister implements DataPersisterInterface
{
// ... lines 9 - 22
}
See Code Block in Script
30 lines | src/Controller/SecurityController.php
// ... lines 1 - 4
use ApiPlatform\Core\Api\IriConverterInterface;
// ... lines 6 - 8
use Symfony\Component\HttpFoundation\Response;
// ... lines 10 - 11
class SecurityController extends AbstractController
{
// ... lines 14 - 16
public function login(IriConverterInterface $iriConverter)
{
// ... lines 19 - 24
return new Response(null, 204, [
'Location' => $iriConverter->getIriFromItem($this->getUser())
]);
}
}
See Code Block in Script
190 lines | src/Entity/User.php
// ... lines 1 - 6
use ApiPlatform\Core\Serializer\Filter\PropertyFilter;
// ... lines 8 - 15
/**
// ... lines 17 - 20
* @ApiFilter(PropertyFilter::class)
// ... lines 22 - 24
*/
class User implements UserInterface
// ... lines 27 - 190
See Code Block in Script